Browse Source

Cleanup bindings

main
Christopher James Hayward 4 years ago
parent
commit
326c601db5
  1. 12
      README.org
  2. 4
      init.el

12
README.org

@ -48,7 +48,7 @@ How can we solve this issue?
(defvar dotfiles/cache "~/.cache/emacs") (defvar dotfiles/cache "~/.cache/emacs")
#+end_src #+end_src
Shortly after initialization, before most packages are loaded, we change the value to ~dotfiles/cache~.
Shortly after initialization, before most packages are loaded, we change the value to ~dotfiles/cache~. I elaborate more on the technique in my post [[https://chrishayward.xyz/posts/immutable_emacs/][Immutable Emacs]].
#+begin_src emacs-lisp #+begin_src emacs-lisp
(setq user-emacs-directory dotfiles/cache) (setq user-emacs-directory dotfiles/cache)
@ -240,15 +240,15 @@ https://github.com/redguardtoo/evil-nerd-commenter
Again cherry picked from =Doom=, I want to continue utilizing the muscle memory I have developed from a year of mainlining the framework. Again cherry picked from =Doom=, I want to continue utilizing the muscle memory I have developed from a year of mainlining the framework.
+ Find files =SPC . (period)=
+ Close buffers with =SPC / (slash)=
+ Close buffers with =SPC c=
+ Find files with =SPC . (period)=
+ Switch buffers with =SPC , (comma)= + Switch buffers with =SPC , (comma)=
#+begin_src emacs-lisp #+begin_src emacs-lisp
(dotfiles/leader (dotfiles/leader
"," '(switch-to-buffer :which-key "Buffer")
"/" '(kill-buffer-and-window :which-key "Close")
"." '(find-file :which-key "File"))
"." '(find-file :which-key "Files")
"," '(switch-to-buffer :which-key "Buffers")
"c" '(kill-buffer-and-window :which-key "Close"))
#+end_src #+end_src
**** Quit **** Quit

4
init.el

@ -100,9 +100,9 @@
:bind ("M-;" . evilnc-comment-or-uncomment-lines)) :bind ("M-;" . evilnc-comment-or-uncomment-lines))
(dotfiles/leader (dotfiles/leader
"." '(find-file :which-key "Files")
"," '(switch-to-buffer :which-key "Buffer") "," '(switch-to-buffer :which-key "Buffer")
"/" '(kill-buffer-and-window :which-key "Close")
"." '(find-file :which-key "File"))
"c" '(kill-buffer-and-window :which-key "Close"))
(dotfiles/leader (dotfiles/leader
"q" '(:ignore t :which-key "Quit") "q" '(:ignore t :which-key "Quit")

Loading…
Cancel
Save