docs(emacs): better keybinds for new repository

This commit is contained in:
Lucien Cartier-Tilet 2023-12-29 13:51:08 +01:00
parent 961f197db4
commit d3becb5e28
Signed by: phundrak
GPG Key ID: BD7789E705CB8DCA

View File

@ -168,26 +168,36 @@ My buffer-related keybinds are all prefixed by ~b~.
** Files ** Files
My keybinds for file manipulation are prefixed by ~f~. My keybinds for file manipulation are prefixed by ~f~.
#+name: keybinds-files #+name: keybinds-files
| Key | Function | Description | | Key | Function | Description |
|-----+----------------------+-------------| |-----+-------------------+-------------|
| | | files | | | | files |
| f | counsel-find-file | | | f | counsel-find-file | |
| F | ivy-quick-find-files | | | F | quick-find-files | |
| h | hexl-find-file | | | h | hexl-find-file | |
| r | counsel-recentf | | | r | counsel-recentf | |
| s | save-buffer | | | s | save-buffer | |
I also have some keybinds dedicated to opening specific files. I also have some keybinds dedicated to opening specific files.
#+name: keybinds-specific-files #+name: keybinds-specific-files
#+begin_src emacs-lisp :tangle no #+begin_src emacs-lisp :tangle no
"fc" '((lambda () "fc" '((lambda ()
(interactive) (interactive)
(find-file "~/org/config/emacs.org")) (quick-find-files nil "~/org/config/docs/emacs" "org"))
:wk "emacs.org") :wk "emacs config")
"fC" '((lambda ()
(interactive)
(quick-find-files nil "~/org/config/docs" "org"))
:wk "general config")
"fi" '((lambda () "fi" '((lambda ()
(interactive) (interactive)
(find-file (concat user-emacs-directory "init.el"))) (find-file (concat user-emacs-directory "init.el")))
:which-key "init.el") :which-key "init.el")
"fI" '((lambda ()
(interactive)
(quick-find-files nil
(expand-file-name "lisp" user-emacs-directory)
"el"))
:which-key "elisp config")
"fR" '((lambda () "fR" '((lambda ()
(interactive) (interactive)
(counsel-find-file "" (counsel-find-file ""