aboutsummaryrefslogtreecommitdiff
path: root/Doom/.config/doom/org
diff options
context:
space:
mode:
authordx <aryadevchavali1@gmail.com>2020-07-20 21:10:33 +0100
committerdx <aryadevchavali1@gmail.com>2020-07-20 21:10:33 +0100
commit43d981e90be9fc86ff05bdfc34b5b55d1cc33fbc (patch)
treef0c88e0d42b5f85b8c9d6f4107e8a02bc2f9b455 /Doom/.config/doom/org
parentd8eb5ff0200857af534c5c2f105b89c854c1a8f2 (diff)
downloaddotfiles-43d981e90be9fc86ff05bdfc34b5b55d1cc33fbc.tar.gz
dotfiles-43d981e90be9fc86ff05bdfc34b5b55d1cc33fbc.tar.bz2
dotfiles-43d981e90be9fc86ff05bdfc34b5b55d1cc33fbc.zip
~exported keymap settings to an elisp file
Keymap is a section of my config I edit quite a lot, and the org mode format doesn't really fit with the way I edit it. Therefore I exported it to an elisp file where I can quickly edit bits and pieces without a lot of lag from explaining myself in org mode.
Diffstat (limited to 'Doom/.config/doom/org')
-rw-r--r--Doom/.config/doom/org/config.org29
1 files changed, 4 insertions, 25 deletions
diff --git a/Doom/.config/doom/org/config.org b/Doom/.config/doom/org/config.org
index 9aa2912..8185895 100644
--- a/Doom/.config/doom/org/config.org
+++ b/Doom/.config/doom/org/config.org
@@ -325,30 +325,9 @@ Define a major-mode for sxhkd config files.
"Simple mode for sxhkdrc files.")
#+END_SRC
* Key-map
-General keymap
-** Personal
-- Prefix "SPC m" (rebound from local-leader) that will hold personal keybinds for functions that I like using
-- Mostly opening directories I use a lot or doing custom stuff that I can't really put in anything in particular
+General keymap, load the keymap elisp file.
+This elisp file is basically two big maps, which are better explained in that document than this one.
+Furthermore, debugging and working on that document is something I do so often, it's just better to do it in an Elisp file than a org file.
#+BEGIN_SRC elisp
-(map!
- :leader
- :prefix ("m" . "personal") ; Personal
- :desc "Open books" "b" #'(lambda () (interactive) (dired (concat org-directory "/Books"))); I like my books
- :desc "Convert auto-fill" "f" #'dx:org/fill-to-long-lines
- :desc "Change theme" "t" #'dx:themes/set-new-theme ; From my own collection
- :desc "Generate template" "g" #'+gentemplate/generate-template) ; From my own collection
-#+END_SRC
-** Remaps
-Adding a new configuration option.
-Remapping functions that other modules set to default functions.
-#+BEGIN_SRC elisp
-(define-key!
- [remap compile] #'compile)
-#+END_SRC
-** Non-leader
-Non-leader bindings for text-based commands.
-#+BEGIN_SRC elisp
-(map!
- "M-v" #'dx:newline
- "M-V" #'(lambda () (interactive) (dx:newline 1)))
+(load (concat doom-private-dir "+keymap.el"))
#+END_SRC