diff options
author | dx <aryadevchavali1@gmail.com> | 2020-07-20 21:10:33 +0100 |
---|---|---|
committer | dx <aryadevchavali1@gmail.com> | 2020-07-20 21:10:33 +0100 |
commit | 43d981e90be9fc86ff05bdfc34b5b55d1cc33fbc (patch) | |
tree | f0c88e0d42b5f85b8c9d6f4107e8a02bc2f9b455 /Doom/.config/doom/+keymap.el | |
parent | d8eb5ff0200857af534c5c2f105b89c854c1a8f2 (diff) | |
download | dotfiles-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/+keymap.el')
-rw-r--r-- | Doom/.config/doom/+keymap.el | 50 |
1 files changed, 50 insertions, 0 deletions
diff --git a/Doom/.config/doom/+keymap.el b/Doom/.config/doom/+keymap.el new file mode 100644 index 0000000..6c7a638 --- /dev/null +++ b/Doom/.config/doom/+keymap.el @@ -0,0 +1,50 @@ +;;; ~/Dotfiles/Doom/.config/doom/elisp/+keymap.el -*- lexical-binding: t; -*- + +;;; Leader +(map! + :leader + ;; Single binds + "SPC" #'execute-extended-command + "!" #'async-shell-command + "T" #'eshell + "C" #'calc + "-" #'dired-jump + "_" #'dired-jump-other-window + "w" #'ace-window + + ;; Personal + (:prefix ("m" . "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 + + ;; Projectile + (:after projectile + (:prefix "f" + "g" #'projectile-regenerate-tags + "p" #'(lambda () (interactive) (doom-project-find-file "~/Dotfiles"))) + ">" #'projectile-switch-to-buffer) + + ;; Search + (:prefix "s" + (:after counsel-etags + "t" #'counsel-etags-find-tag) + (:after counsel + "s" #'counsel-grep-or-swiper + "r" #'counsel-rg)) + + ;; Code + (:prefix "c" + "m" #'+make/run)) + +;;; Non leader +(map! + (:after evil + "TAB" #'evil-jump-item) + "M-v" #'dx:newline + "M-V" #'(lambda () (interactive) (dx:newline 1))) + +;;; Remaps +(define-key! + [remap compile] #'compile) |