about summary refs log tree commit diff
path: root/configs/shared
diff options
context:
space:
mode:
authorWilliam Carroll <wpcarro@gmail.com>2020-01-08T15·19+0000
committerWilliam Carroll <wpcarro@gmail.com>2020-01-17T10·56+0000
commit2c0365148399c7a09114ce3f982c6c87752f1c29 (patch)
tree9f5aec84747032e6efe1d47b28f38e6812362e8a /configs/shared
parentca8cb3fe218fab23ddb6e3a8262b7aa294e124cb (diff)
Support KBDs for quickly editing common dotfiles
I had forgotten that I defined <SPC>J. Maybe I should switch to using Hydras or
transient mode to improve the discoverability of my own setup... well in the
spirit of support things that I will likely forget, here's a new KBD for editing
config files in the `~/.config` directory.
Diffstat (limited to 'configs/shared')
-rw-r--r--configs/shared/.emacs.d/wpc/dotfiles.el5
1 files changed, 4 insertions, 1 deletions
diff --git a/configs/shared/.emacs.d/wpc/dotfiles.el b/configs/shared/.emacs.d/wpc/dotfiles.el
index ba15fd4d6b5b..d7fd3e400e09 100644
--- a/configs/shared/.emacs.d/wpc/dotfiles.el
+++ b/configs/shared/.emacs.d/wpc/dotfiles.el
@@ -50,7 +50,10 @@
    (f-join "~/Dropbox/dotfiles/configs/shared/.emacs.d" name)))
 
 (when dotfiles/install-kbds?
-  (evil-leader/set-key "J" #'dotfiles/edit))
+  (evil-leader/set-key "J" #'dotfiles/edit)
+  (evil-leader/set-key "c" (lambda ()
+                             (interactive)
+                             (counsel-find-file "~/.config"))))
 
 (provide 'dotfiles)
 ;;; dotfiles.el ends here