Updated my Doom Emacs config.
This commit is contained in:
parent
d94dcaed8e
commit
a9eb8e630a
|
@ -48,13 +48,13 @@ Doom Emacs uses 'SPC b' for keybindings related to bookmarks and buffers. Bookm
|
||||||
* CENTAUR-TABS
|
* CENTAUR-TABS
|
||||||
To use tabs in Doom Emacs, be sure to uncomment "tabs" in Doom's init.el. Displays tabs at the top of the window similar to tabbed web browsers such as Firefox. I don't actually use tabs in Emacs. I placed this in my config to help others who may want tabs. In the default configuration of Doom Emacs, 'SPC t' is used for "toggle" keybindings, so I choose 'SPC t c' to toggle centaur-tabs. The "g" prefix for keybindings is used for a bunch of evil keybindings in Doom, but "g" plus the arrow keys were not used, so I thought I would bind those for tab navigation. But I did leave the default "g t" and "g T" intact if you prefer to use those for centaur-tabs-forward/backward.
|
To use tabs in Doom Emacs, be sure to uncomment "tabs" in Doom's init.el. Displays tabs at the top of the window similar to tabbed web browsers such as Firefox. I don't actually use tabs in Emacs. I placed this in my config to help others who may want tabs. In the default configuration of Doom Emacs, 'SPC t' is used for "toggle" keybindings, so I choose 'SPC t c' to toggle centaur-tabs. The "g" prefix for keybindings is used for a bunch of evil keybindings in Doom, but "g" plus the arrow keys were not used, so I thought I would bind those for tab navigation. But I did leave the default "g t" and "g T" intact if you prefer to use those for centaur-tabs-forward/backward.
|
||||||
|
|
||||||
| COMMAND | DESCRIPTION | KEYBINDING |
|
| COMMAND | DESCRIPTION | KEYBINDING |
|
||||||
|-----------------------------+--------------------+------------------|
|
|-----------------------------+----------------------+------------------|
|
||||||
| centaur-tabs-local-mode | Toggle tabs on/off | SPC t c |
|
| centaur-tabs-local-mode | /Toggle tabs on/off/ | SPC t c |
|
||||||
| centaur-tabs-forward | Next tab | g <right> or g t |
|
| centaur-tabs-forward | /Next tab/ | g <right> or g t |
|
||||||
| centaur-tabs-backward | Previous tab | g <left> or g T |
|
| centaur-tabs-backward | /Previous tab/ | g <left> or g T |
|
||||||
| centaur-tabs-forward-group | Next tab group | g <down> |
|
| centaur-tabs-forward-group | /Next tab group/ | g <down> |
|
||||||
| centaur-tabs-backward-group | Previous tab group | g <up> |
|
| centaur-tabs-backward-group | /Previous tab group/ | g <up> |
|
||||||
|
|
||||||
#+BEGIN_SRC emacs-lisp
|
#+BEGIN_SRC emacs-lisp
|
||||||
(setq centaur-tabs-set-bar 'over
|
(setq centaur-tabs-set-bar 'over
|
||||||
|
@ -76,14 +76,14 @@ To use tabs in Doom Emacs, be sure to uncomment "tabs" in Doom's init.el. Displ
|
||||||
* DIRED
|
* DIRED
|
||||||
Dired is the file manager within Emacs. Below, I setup keybindings for image previews (peep-dired). Doom Emacs does not use 'SPC d' for any of its keybindings, so I've chosen the format of 'SPC d' plus 'key'.
|
Dired is the file manager within Emacs. Below, I setup keybindings for image previews (peep-dired). Doom Emacs does not use 'SPC d' for any of its keybindings, so I've chosen the format of 'SPC d' plus 'key'.
|
||||||
|
|
||||||
| COMMAND | DESCRIPTION | KEYBINDING |
|
| COMMAND | DESCRIPTION | KEYBINDING |
|
||||||
|-------------------------------------------+------------------------------------------+------------|
|
|-------------------------------------------+--------------------------------------------+------------|
|
||||||
| dired | Open dired file manager | SPC d d |
|
| dired | /Open dired file manager/ | SPC d d |
|
||||||
| dired-jump | Jump to current directory in dired | SPC d j |
|
| dired-jump | /Jump to current directory in dired/ | SPC d j |
|
||||||
| (in dired) peep-dired | Toggle image previews within dired | SPC d p |
|
| (in dired) peep-dired | /Toggle image previews within dired/ | SPC d p |
|
||||||
| (in dired) dired-view-file | View file in dired | SPC d v |
|
| (in dired) dired-view-file | /View file in dired/ | SPC d v |
|
||||||
| (in peep-dired-mode) peep-dired-next-file | Move to next file in peep-dired-mode | j |
|
| (in peep-dired-mode) peep-dired-next-file | /Move to next file in peep-dired-mode/ | j |
|
||||||
| (in peep-dired-mode) peep-dired-prev-file | Move to previous file in peep-dired-mode | k |
|
| (in peep-dired-mode) peep-dired-prev-file | /Move to previous file in peep-dired-mode/ | k |
|
||||||
|
|
||||||
#+BEGIN_SRC emacs-lisp
|
#+BEGIN_SRC emacs-lisp
|
||||||
(map! :leader
|
(map! :leader
|
||||||
|
@ -366,7 +366,7 @@ Keybindings to open files that I work with all the time using the find-file comm
|
||||||
#+END_SRC
|
#+END_SRC
|
||||||
|
|
||||||
* ORG MODE
|
* ORG MODE
|
||||||
Note that I wrapped most of this in (after! org). Without this, my settings might be evaluated too early, which will result in my settings being overwritten by Doom's defaults. I have also enabled org-journal by adding (+journal) to the org section of my Doom Emacs' init.el.
|
Note that I wrapped most of this in (after! org). Without this, my settings might be evaluated too early, which will result in my settings being overwritten by Doom's defaults. I have also enabled org-journal by adding (+journal) to the org section of my Doom Emacs init.el.
|
||||||
|
|
||||||
#+BEGIN_SRC emacs-lisp
|
#+BEGIN_SRC emacs-lisp
|
||||||
(after! org
|
(after! org
|
||||||
|
|
Loading…
Reference in New Issue