From a9eb8e630a4d265cebb32156aa4c46d94c8ef9b0 Mon Sep 17 00:00:00 2001 From: Derek Taylor Date: Sun, 25 Oct 2020 18:06:05 -0500 Subject: [PATCH] Updated my Doom Emacs config. --- .doom.d/config.org | 32 ++++++++++++++++---------------- 1 file changed, 16 insertions(+), 16 deletions(-) diff --git a/.doom.d/config.org b/.doom.d/config.org index ca0158a..8920d7b 100644 --- a/.doom.d/config.org +++ b/.doom.d/config.org @@ -48,13 +48,13 @@ Doom Emacs uses 'SPC b' for keybindings related to bookmarks and buffers. Bookm * 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. -| COMMAND | DESCRIPTION | KEYBINDING | -|-----------------------------+--------------------+------------------| -| centaur-tabs-local-mode | Toggle tabs on/off | SPC t c | -| centaur-tabs-forward | Next tab | g or g t | -| centaur-tabs-backward | Previous tab | g or g T | -| centaur-tabs-forward-group | Next tab group | g | -| centaur-tabs-backward-group | Previous tab group | g | +| COMMAND | DESCRIPTION | KEYBINDING | +|-----------------------------+----------------------+------------------| +| centaur-tabs-local-mode | /Toggle tabs on/off/ | SPC t c | +| centaur-tabs-forward | /Next tab/ | g or g t | +| centaur-tabs-backward | /Previous tab/ | g or g T | +| centaur-tabs-forward-group | /Next tab group/ | g | +| centaur-tabs-backward-group | /Previous tab group/ | g | #+BEGIN_SRC emacs-lisp (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 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 | -|-------------------------------------------+------------------------------------------+------------| -| dired | Open dired file manager | SPC d d | -| 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) 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-prev-file | Move to previous file in peep-dired-mode | k | +| COMMAND | DESCRIPTION | KEYBINDING | +|-------------------------------------------+--------------------------------------------+------------| +| dired | /Open dired file manager/ | SPC d d | +| 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) 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-prev-file | /Move to previous file in peep-dired-mode/ | k | #+BEGIN_SRC emacs-lisp (map! :leader @@ -366,7 +366,7 @@ Keybindings to open files that I work with all the time using the find-file comm #+END_SRC * 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 (after! org