diff options
| -rw-r--r-- | jakob.org | 37 |
1 files changed, 20 insertions, 17 deletions
@@ -843,10 +843,7 @@ Transformer to highlight channels in the =completing-read= of * Counsel #+BEGIN_SRC elisp -(use-package counsel - :bind - (:map org-mode-map - ("C-c C-q" . counsel-org-tag))) +(use-package counsel) #+END_SRC * Dired @@ -1009,11 +1006,15 @@ pinentry's job. * Org -Preference of hygene. See [[Filesystem]]. +Preference of hygene. See [[Filesystem]]. Org is also forcefully loaded because +there are a number of things declared via =:config= that I want run as soon as +Emacs starts. #+BEGIN_SRC elisp (use-package org :straight nil + :requires counsel + :demand t :init (setq-default org-id-locations-file "~/.cache/emacs/org-id-locations") (setq-default org-latex-preview-ltxpng-directory "~/.cache/emacs/ltximg/") @@ -1084,7 +1085,8 @@ here, since =use-package= doesn't like split =:bind= declarations. ("C-c c" . (lambda () (interactive) (org-capture nil "c"))) ("C-c t" . (lambda () (interactive) (org-capture nil "t"))) :map org-mode-map - ("C-c s" . org-goto)) + ("C-c s" . org-goto) + ("C-c C-q" . counsel-org-tag)) #+END_SRC ** Personal Wiki @@ -1156,19 +1158,20 @@ thoughts. They're dated and saved in a directory so I can =ag= them. This is the closest thing I will ever have to an implementation of =ag= for my thoughts. #+BEGIN_SRC elisp -(defvar mind-dump-directory "~/Notes/Mind Dumps" - "Where to store dated 'mind dump' files.") + :config + (defvar mind-dump-directory "~/Notes/Mind Dumps" + "Where to store dated 'mind dump' files.") -(defun mind-dump-filename () - "Returns the path of today's 'mind dump' file." - (concatenate 'string - (file-name-as-directory mind-dump-directory) - (format-time-string "%Y-%m-%d") - ".org")) + (defun mind-dump-filename () + "Returns the path of today's 'mind dump' file." + (concatenate 'string + (file-name-as-directory mind-dump-directory) + (format-time-string "%Y-%m-%d") + ".org")) -(let* ((buffer (find-file-noselect (mind-dump-filename)))) - (set-buffer buffer) - (rename-buffer "*Mind Dump*")) + (let* ((buffer (find-file-noselect (mind-dump-filename)))) + (set-buffer buffer) + (rename-buffer "*Mind Dump*")) #+END_SRC ** Capture |