From abe98bf7c4ce8214f61c28236706d7bb424ac1b1 Mon Sep 17 00:00:00 2001 From: Jakob L. Kreuze Date: Sun, 3 Feb 2019 09:41:56 -0500 Subject: Add keybindings for starting Firefox and mutt --- jakob.org | 51 ++++++++++++++++++++++++++++----------------------- 1 file changed, 28 insertions(+), 23 deletions(-) diff --git a/jakob.org b/jakob.org index 1500641..72048db 100644 --- a/jakob.org +++ b/jakob.org @@ -875,6 +875,12 @@ inspired by the WASD movement typical of first-person shooter games. ([?\s-X] . (lambda () (interactive) (start-process "" nil "/usr/bin/slock"))) + ([?\s-f] . (lambda () + (interactive) + (start-process "" nil "/usr/bin/firefox"))) + ([?\s-m] . (lambda () + (interactive) + (start-process "" nil "/usr/bin/kitty" "--class" "mutt" "/usr/bin/mutt"))) (,(kbd "s-") . (lambda () (interactive) (start-process "" nil "/usr/bin/kitty"))) @@ -1094,29 +1100,6 @@ Code for generating hierarchical category listings. (newline)))))))) #+END_SRC -** Workflow - -Automatically open a buffer named =*Mind Dump*= to, well, save all of my -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 - :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")) - - (let* ((buffer (find-file-noselect (mind-dump-filename)))) - (set-buffer buffer) - (rename-buffer "*Mind Dump*")) -#+END_SRC - ** Capture Low-friction of adding things to the day's "mind dump" and my GTD inbox. @@ -1208,6 +1191,28 @@ items right on the first try. It's unhelpful and really just annoying. (setq org-drill-forgetting-index 100)) #+END_SRC +** Workflow + +Automatically open a buffer named =*Mind Dump*= to, well, save all of my +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.") + +(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*")) +#+END_SRC + * Yasnippet Enable Yasnippet globally. -- cgit v1.3