Browse Source

Fix switch-to-buffer keys

main
parent
commit
c5c44c9913
  1. 40
      modules/keys.org

40
modules/keys.org

@ -63,8 +63,23 @@ Implement some shortcut bindings, with a significant portion of them cherry pick
#+begin_src emacs-lisp #+begin_src emacs-lisp
(dotfiles/leader (dotfiles/leader
"." '(find-file :which-key "Files") "." '(find-file :which-key "Files")
"," '(switch-buffer :which-key "Buffers")
"c" '(kill-buffer-and-window :which-key "Close"))
"," '(switch-to-buffer :which-key "Buffers"))
#+end_src
** Quitting Emacs
Customize the behaviour of exiting emacs, with keybindings behind =SPC q=:
+ Save and quit =q=
+ Quit without saving =w=
+ Exit the Frame (daemon) =f=
#+begin_src emacs-lisp
(dotfiles/leader
"q" '(:ignore t :which-key "Quit")
"qq" '(save-buffers-kill-emacs :which-key "Save")
"qw" '(kill-emacs :which-key "Now")
"qf" '(delete-frame :which-key "Frame"))
#+end_src #+end_src
** Managing windows ** Managing windows
@ -73,6 +88,7 @@ Screen space is divided into Frames inside of Emacs, manage them behind =SPC w=:
+ Swap with =w= + Swap with =w=
+ Close with =c= + Close with =c=
+ Delete with =d=
+ Move with =h,j,k,l= + Move with =h,j,k,l=
+ Split with =s - <motion>= + Split with =s - <motion>=
@ -80,7 +96,8 @@ Screen space is divided into Frames inside of Emacs, manage them behind =SPC w=:
(dotfiles/leader (dotfiles/leader
"w" '(:ignore t :which-key "Window") "w" '(:ignore t :which-key "Window")
"ww" '(window-swap-states :which-key "Swap") "ww" '(window-swap-states :which-key "Swap")
"wc" '(delete-window :which-key "Close")
"wc" '(kill-buffer-and-window :which-key "Close")
"wd" '(delete-window :which-key "Close")
"wh" '(windmove-left :which-key "Left") "wh" '(windmove-left :which-key "Left")
"wj" '(windmove-down :which-key "Down") "wj" '(windmove-down :which-key "Down")
"wk" '(windmove-up :which-key "Up") "wk" '(windmove-up :which-key "Up")
@ -90,23 +107,6 @@ Screen space is divided into Frames inside of Emacs, manage them behind =SPC w=:
"wsl" '(split-window-right :which-key "Right")) "wsl" '(split-window-right :which-key "Right"))
#+end_src #+end_src
** Quitting Emacs
Customize the behaviour of exiting emacs, with keybindings behind =SPC q=:
+ Save and quit =q=
+ Quit without saving =w=
+ Exit the Frame (daemon) =f=
#+begin_src emacs-lisp
(dotfiles/leader
"q" '(:ignore t :which-key "Quit")
"qq" '(save-buffers-kill-emacs :which-key "Save")
"qw" '(kill-emacs :which-key "Now")
"qf" '(delete-frame :which-key "Frame"))
#+end_src
** Helper Functions ** Helper Functions
Use the built-in ~describe-*~ functionality of Emacs to quickly access documentation for packages, variables, and functions. Run helper functions with =SPC h=: Use the built-in ~describe-*~ functionality of Emacs to quickly access documentation for packages, variables, and functions. Run helper functions with =SPC h=:

Loading…
Cancel
Save