mirror of https://github.com/Flinner/dots.git
feat(emacs): >:)
This commit is contained in:
parent
577fe721b3
commit
298851f455
|
@ -33,6 +33,8 @@ bspc config pointer_follows_focus true
|
||||||
# these 2 rules are removed after the program starts, in ~/bin/autostart
|
# these 2 rules are removed after the program starts, in ~/bin/autostart
|
||||||
bspc rule -a Thunderbird desktop='^8'
|
bspc rule -a Thunderbird desktop='^8'
|
||||||
bspc rule -a KeePassXC desktop='^8'
|
bspc rule -a KeePassXC desktop='^8'
|
||||||
|
# the confirm dialog
|
||||||
|
bspc rule -a "KeePassXC:Confirm Auto-Type:*" sticky=on
|
||||||
|
|
||||||
bspc rule -a Dino desktop='^8'
|
bspc rule -a Dino desktop='^8'
|
||||||
bspc rule -a Peek state=floating
|
bspc rule -a Peek state=floating
|
||||||
|
|
|
@ -395,6 +395,8 @@ Edit: honestly I have no clue wtf that meant, or why I wrote it, but I will keep
|
||||||
"r" '(:ignore t :which-key "Roam+Org")
|
"r" '(:ignore t :which-key "Roam+Org")
|
||||||
|
|
||||||
"ra" '(org-agenda :which-key "Agenda")
|
"ra" '(org-agenda :which-key "Agenda")
|
||||||
|
"rA" '(cfw:open-org-calendar :which-key "Calendar")
|
||||||
|
"rh" '(helm-org-ql-views :which-key "org-ql views")
|
||||||
|
|
||||||
"rD" '(deft :which-key "Deft")
|
"rD" '(deft :which-key "Deft")
|
||||||
"rf" '(org-roam-node-find :which-key "Find Note")
|
"rf" '(org-roam-node-find :which-key "Find Note")
|
||||||
|
@ -556,6 +558,7 @@ Capture
|
||||||
)
|
)
|
||||||
:config
|
:config
|
||||||
(evil-mode 1)
|
(evil-mode 1)
|
||||||
|
|
||||||
(define-key evil-insert-state-map (kbd "C-g") 'evil-normal-state)
|
(define-key evil-insert-state-map (kbd "C-g") 'evil-normal-state)
|
||||||
(define-key evil-insert-state-map (kbd "C-h") 'evil-delete-backward-char-and-join)
|
(define-key evil-insert-state-map (kbd "C-h") 'evil-delete-backward-char-and-join)
|
||||||
(define-key evil-normal-state-map "u" 'undo-fu-only-undo)
|
(define-key evil-normal-state-map "u" 'undo-fu-only-undo)
|
||||||
|
@ -872,7 +875,8 @@ better sorting for ivy, company..
|
||||||
#+begin_src emacs-lisp
|
#+begin_src emacs-lisp
|
||||||
(setq org-directory "~/Documents/gtd/"
|
(setq org-directory "~/Documents/gtd/"
|
||||||
org-roam-directory "~/Documents/roam/"
|
org-roam-directory "~/Documents/roam/"
|
||||||
org-agenda-files (list org-directory)
|
org-books-file (concat org-roam-directory "book_list.org")
|
||||||
|
org-agenda-files (list org-directory org-books-file)
|
||||||
rmh-elfeed-org-files (list "~/Documents/private.el/elfeed.org")
|
rmh-elfeed-org-files (list "~/Documents/private.el/elfeed.org")
|
||||||
elfeed-dashboard-file "~/Documents/private.el/elfeed-dashboard.org"
|
elfeed-dashboard-file "~/Documents/private.el/elfeed-dashboard.org"
|
||||||
org-preview-latex-image-directory "~/.cache/ltx/ltximg"
|
org-preview-latex-image-directory "~/.cache/ltx/ltximg"
|
||||||
|
@ -1107,7 +1111,7 @@ From: https://yiufung.net/post/anki-org/
|
||||||
** Agenda
|
** Agenda
|
||||||
*** T/ODOs
|
*** T/ODOs
|
||||||
#+begin_src emacs-lisp
|
#+begin_src emacs-lisp
|
||||||
(setq org-todo-keywords '((sequence "TODAY(y)" "TODO(t)" "NOW(o)" "NEXT(n)" "|" "DONE(d)")
|
(setq org-todo-keywords '((sequence "TODO(t)" "NOW(o)" "NEXT(n)" "|" "DONE(d)")
|
||||||
(sequence "|" "CANCELED(c)")))
|
(sequence "|" "CANCELED(c)")))
|
||||||
#+end_src
|
#+end_src
|
||||||
|
|
||||||
|
@ -1224,8 +1228,9 @@ From: https://yiufung.net/post/anki-org/
|
||||||
'((:log t :order 99); logs at bottom
|
'((:log t :order 99); logs at bottom
|
||||||
(:name "Today" ; today is what
|
(:name "Today" ; today is what
|
||||||
:time-grid t ; Items that appear on the time grid
|
:time-grid t ; Items that appear on the time grid
|
||||||
:todo "TODAY"
|
|
||||||
:scheduled today)
|
:scheduled today)
|
||||||
|
(:name "Now" ; today is what
|
||||||
|
:todo "NOW")
|
||||||
(:name "Overdue"
|
(:name "Overdue"
|
||||||
:deadline past
|
:deadline past
|
||||||
:scheduled past)
|
:scheduled past)
|
||||||
|
@ -1237,7 +1242,7 @@ From: https://yiufung.net/post/anki-org/
|
||||||
(org-super-agenda-mode 1)
|
(org-super-agenda-mode 1)
|
||||||
|
|
||||||
:hook (org-agenda-mode . origami-mode)
|
:hook (org-agenda-mode . origami-mode)
|
||||||
;(org-agenda-mode . org-super-agenda-mode); need this sadly
|
(org-agenda-mode . org-super-agenda-mode); need this sadly
|
||||||
(org-agenda-mode . olivetti-mode)
|
(org-agenda-mode . olivetti-mode)
|
||||||
(org-agenda-mode . olivetti-mode)
|
(org-agenda-mode . olivetti-mode)
|
||||||
;(evil-define-key '(normal visual) 'org-super-agenda-header-map "j" 'org-agenda-next-line)
|
;(evil-define-key '(normal visual) 'org-super-agenda-header-map "j" 'org-agenda-next-line)
|
||||||
|
@ -1259,28 +1264,34 @@ From: https://yiufung.net/post/anki-org/
|
||||||
; TODO: tasks not in inbox, and have no schedule/effort/etc
|
; TODO: tasks not in inbox, and have no schedule/effort/etc
|
||||||
(use-package org-ql
|
(use-package org-ql
|
||||||
:config
|
:config
|
||||||
(setq org-ql-views (list (cons "Overview: Agenda-like"
|
(setq org-ql-views (list
|
||||||
|
(cons "Agenda:Today"
|
||||||
(list :buffers-files #'org-agenda-files
|
(list :buffers-files #'org-agenda-files
|
||||||
:query '(and (not (done))
|
:query '(and (not (done))
|
||||||
(or (deadline auto)
|
(or (deadline auto)
|
||||||
(scheduled :to today)
|
(scheduled :to today)
|
||||||
(ts-active :on today)
|
(todo "NOW")
|
||||||
(todo "TODAY")))
|
(ts-active :on today)))
|
||||||
:sort '(priority date todo)
|
:sort '(priority date todo)
|
||||||
:super-groups 'org-super-agenda-groups
|
:super-groups 'org-super-agenda-groups
|
||||||
:title "Agenda-like"))
|
:title "Overview: Today"))
|
||||||
(cons "To Refile"
|
(cons "To Refile"
|
||||||
(list :buffers-files #'org-agenda-files
|
(list :buffers-files #'org-agenda-files
|
||||||
:query '(parent (tags "INBOX"))
|
:query '(or
|
||||||
:super-groups 'org-super-agenda-groups
|
(parent (tags "INBOX"))
|
||||||
|
(done))
|
||||||
|
:super-groups '((:name "Done" :todo "DONE")
|
||||||
|
(:name "Canceled" :todo "CANCELED")
|
||||||
|
(:name "Inbox" :anything))
|
||||||
:title "Inbox"))
|
:title "Inbox"))
|
||||||
(cons "Goals"
|
(cons "Plans"
|
||||||
(list :buffers-files #'org-agenda-files
|
(list :buffers-files #'org-agenda-files
|
||||||
:query '(todo "LNOW" "LNEXT")
|
:query '(and
|
||||||
:super-groups '((:todo "LNOW")
|
(parent (tags "PLAN"))
|
||||||
(:todo "LNEXT"))
|
(not (done)))
|
||||||
:sort '(todo)
|
:super-groups '((:auto-outline-path))
|
||||||
:title "Goals"))
|
:sort '(priority date todo)
|
||||||
|
:title "Plans"))
|
||||||
(cons "Consoom and Create"
|
(cons "Consoom and Create"
|
||||||
(list :buffers-files #'org-agenda-files
|
(list :buffers-files #'org-agenda-files
|
||||||
:query '(parent (tags "READ" "WATCH" "TO_BLOG"))
|
:query '(parent (tags "READ" "WATCH" "TO_BLOG"))
|
||||||
|
@ -1291,10 +1302,10 @@ From: https://yiufung.net/post/anki-org/
|
||||||
:title "Goals"))
|
:title "Goals"))
|
||||||
(cons "Orphans"
|
(cons "Orphans"
|
||||||
(list :buffers-files #'org-agenda-files
|
(list :buffers-files #'org-agenda-files
|
||||||
:query '(and (not (todo))
|
:query '(and ;(not (todo))
|
||||||
(not (done))
|
(not (done))
|
||||||
(not (effort))
|
(not (effort))
|
||||||
(not (tags "NOT_ORPHAN"))
|
(not (tags "NOT_ORPHAN" "INBOX"))
|
||||||
(not (scheduled))
|
(not (scheduled))
|
||||||
(not (deadline))
|
(not (deadline))
|
||||||
(parent))))
|
(parent))))
|
||||||
|
@ -1323,6 +1334,23 @@ Stolen from: [[https://blog.jethro.dev/posts/processing_inbox/][Org-mode Workflo
|
||||||
|
|
||||||
#+end_src
|
#+end_src
|
||||||
|
|
||||||
|
*** Calfw calendar
|
||||||
|
#+begin_src emacs-lisp
|
||||||
|
(use-package calfw :after org)
|
||||||
|
(use-package calfw-org
|
||||||
|
:after calfw
|
||||||
|
:config
|
||||||
|
; looks nice
|
||||||
|
(setq cfw:fchar-junction ?╬
|
||||||
|
cfw:fchar-vertical-line ?║
|
||||||
|
cfw:fchar-horizontal-line ?═
|
||||||
|
cfw:fchar-left-junction ?╠
|
||||||
|
cfw:fchar-right-junction ?╣
|
||||||
|
cfw:fchar-top-junction ?╦
|
||||||
|
cfw:fchar-top-left-corner ?╔
|
||||||
|
cfw:fchar-top-right-corner ?╗)
|
||||||
|
(evil-set-initial-state 'cfw:details-mode 'emacs))
|
||||||
|
#+end_src
|
||||||
|
|
||||||
** org-pomodoro
|
** org-pomodoro
|
||||||
#+begin_src emacs-lisp
|
#+begin_src emacs-lisp
|
||||||
|
@ -1349,6 +1377,7 @@ Stolen from: [[https://blog.jethro.dev/posts/processing_inbox/][Org-mode Workflo
|
||||||
:config
|
:config
|
||||||
;; side window
|
;; side window
|
||||||
;(require 'org-roam-protocol)
|
;(require 'org-roam-protocol)
|
||||||
|
(org-roam-db-autosync-mode)
|
||||||
(add-to-list 'display-buffer-alist
|
(add-to-list 'display-buffer-alist
|
||||||
'("\\*org-roam\\*"
|
'("\\*org-roam\\*"
|
||||||
(display-buffer-in-side-window)
|
(display-buffer-in-side-window)
|
||||||
|
@ -1408,9 +1437,7 @@ Stolen from: [[https://blog.jethro.dev/posts/processing_inbox/][Org-mode Workflo
|
||||||
** org-book
|
** org-book
|
||||||
#+begin_src emacs-lisp
|
#+begin_src emacs-lisp
|
||||||
(use-package org-books
|
(use-package org-books
|
||||||
:after org
|
:after org )
|
||||||
:config
|
|
||||||
(setq org-books-file "~/Documents/books/list.org"))
|
|
||||||
#+end_src
|
#+end_src
|
||||||
|
|
||||||
** COMMENT Anki
|
** COMMENT Anki
|
||||||
|
@ -1449,9 +1476,16 @@ Stopped using this, I just use Anki like a normal person
|
||||||
|
|
||||||
#+begin_src emacs-lisp
|
#+begin_src emacs-lisp
|
||||||
(use-package parinfer-rust-mode
|
(use-package parinfer-rust-mode
|
||||||
:hook emacs-lisp-mode scheme-mode clojure-mode
|
:hook
|
||||||
|
(emacs-lisp-mode . parinfer-rust-mode)
|
||||||
|
(scheme-mode . parinfer-rust-mode)
|
||||||
|
(clojure-mode . parinfer-rust-mode)
|
||||||
|
;tabs break parinfer rust mode
|
||||||
|
(parinfer-rust-mode . (lambda () (setq indent-tabs-mode nil)));
|
||||||
:init
|
:init
|
||||||
(setq parinfer-rust-auto-download t))
|
(setq parinfer-rust-auto-download t
|
||||||
|
; this variable is only available on my fork
|
||||||
|
parinfer-rust-disable-troublesome-modes t))
|
||||||
#+end_src
|
#+end_src
|
||||||
|
|
||||||
*** Projectile
|
*** Projectile
|
||||||
|
@ -1918,6 +1952,7 @@ AucTex
|
||||||
(LaTeX-mode . flyspell-mode)
|
(LaTeX-mode . flyspell-mode)
|
||||||
(LaTeX-mode . flycheck-mode)
|
(LaTeX-mode . flycheck-mode)
|
||||||
(LaTeX-mode . turn-on-reftex)
|
(LaTeX-mode . turn-on-reftex)
|
||||||
|
(LaTeX-mode . auto-fill-mode)
|
||||||
(LaTeX-mode . TeX-source-correlate-mode)
|
(LaTeX-mode . TeX-source-correlate-mode)
|
||||||
(LaTeX-mode . try/latex-mode-setup)
|
(LaTeX-mode . try/latex-mode-setup)
|
||||||
(LaTeX-mode . turn-on-cdlatex)
|
(LaTeX-mode . turn-on-cdlatex)
|
||||||
|
@ -2318,6 +2353,7 @@ I wrote that, neat isn't it? :P
|
||||||
(setq circe-color-nicks-min-constrast-ratio 4.5
|
(setq circe-color-nicks-min-constrast-ratio 4.5
|
||||||
circe-color-nicks-everywhere t)
|
circe-color-nicks-everywhere t)
|
||||||
:hook (circe-channel-mode . enable-circe-color-nicks)
|
:hook (circe-channel-mode . enable-circe-color-nicks)
|
||||||
|
(circe-channel-mode . (lambda () (smooth-scrolling-mode -1)))
|
||||||
:custom
|
:custom
|
||||||
(circe-format-say "{nick:-16s} {body}")
|
(circe-format-say "{nick:-16s} {body}")
|
||||||
;; :bind(("C-l" . my/circe/clear))
|
;; :bind(("C-l" . my/circe/clear))
|
||||||
|
@ -2332,7 +2368,7 @@ I wrote that, neat isn't it? :P
|
||||||
lui-flyspell-p t
|
lui-flyspell-p t
|
||||||
lui-fill-type nil
|
lui-fill-type nil
|
||||||
;Display your own nickname instead of >>> in the channel buffers when you're talking.
|
;Display your own nickname instead of >>> in the channel buffers when you're talking.
|
||||||
circe-format-self-say "<{nick}> {body}"
|
circe-format-self-say "{nick:-15s} {body}"
|
||||||
)
|
)
|
||||||
|
|
||||||
(add-hook 'lui-mode-hook 'my-lui-setup)
|
(add-hook 'lui-mode-hook 'my-lui-setup)
|
||||||
|
|
Loading…
Reference in New Issue