diff options
author | AChavali <aryadevchavali1@gmail.com> | 2020-02-09 18:28:28 +0000 |
---|---|---|
committer | AChavali <aryadevchavali1@gmail.com> | 2020-02-09 18:52:00 +0000 |
commit | 08cc5bd1485ab79ffdd8c4d9d21768ee0c96944c (patch) | |
tree | c12de4008a9d6a52d4785b4dbc5c119085acd4fa /doom.d/modules/config.org | |
parent | eb203c229c8f1b9ff77d87c4e748e14616bd8a48 (diff) | |
download | dotfiles-08cc5bd1485ab79ffdd8c4d9d21768ee0c96944c.tar.gz dotfiles-08cc5bd1485ab79ffdd8c4d9d21768ee0c96944c.tar.bz2 dotfiles-08cc5bd1485ab79ffdd8c4d9d21768ee0c96944c.zip |
~removed goto functions and using lambdas now
Goto functions just open dired instances for a specific folder, which a
lambda can do better. Instead of having to load the new file just to use
the function, just make the bindings directly via dired.
Diffstat (limited to 'doom.d/modules/config.org')
-rw-r--r-- | doom.d/modules/config.org | 11 |
1 files changed, 6 insertions, 5 deletions
diff --git a/doom.d/modules/config.org b/doom.d/modules/config.org index 212ec16..65d02c0 100644 --- a/doom.d/modules/config.org +++ b/doom.d/modules/config.org @@ -141,6 +141,7 @@ If RETURN-P, return the message as a string instead of displaying it." :icon (all-the-icons-octicon "bookmark" :face 'font-lock-keyword-face) :action bookmark-jump))) #+END_SRC + - Space image comes from [[https://flaticon.com][website]] - Remove the Github link to the official Doom Emacs repository: it's in muscle memory at this point. @@ -340,7 +341,7 @@ each of the unit tests ran." :server-id 'typescript)))) #+END_SRC * Keymap -- General keymap for leader +General keymap for leader ** Personal - Prefix "SPC m" (rebound from local-leader) that will hold personal keybinds for functions that I like using @@ -350,16 +351,16 @@ each of the unit tests ran." (map! :leader :prefix ("m" . "personal") ; Personal - :desc "Open books" "b" #'oreodave/goto-books ; I like my books - :desc "Open school dir" "s" #'oreodave/goto-school ; I like my schooling - :desc "Open weather" "w" #'oreodave/weather ; Nah I don't like the weather + :desc "Open books" "b" #'(lambda () (interactive) (dired (concat org-directory "/Books"))); I like my books + :desc "Open school dir" "s" #'(lambda () (interactive) (dired (expand-file-name "~/School"))) :desc "Open notes" "n" #'(lambda () (interactive) (dired org-directory)) + :desc "Open code" "c" #'(lambda () (interactive) (dired (expand-file-name "~/Code"))) + :desc "Open weather" "w" #'oreodave/weather :desc "Change theme" "t" #'oreodave/theme/set-new-theme ; From my own collection (:after pdf-view :desc "Goto page on pdf" "p" #'pdf-view-goto-page) :desc "Reload emacs" "r" #'oreodave/reload) ; Reload is necessary #+END_SRC - ** Counsel - Counsel keybind config - Mostly just convenience stuff that happens to use counsel |