Skip to main content
18 votes
Accepted

DOOM Emacs: Error running hook "global-git-commit-mode" because: (void-variable transient-base-map)

It seems that some magit dependencies break with Emacs 28, as the function defvar-keymap is only added in Emacs 29. The solution is to pin an older version of the packages, as Doom currently does not ...
Eric's user avatar
  • 306
10 votes
Accepted

Packages I never knew they existed cause problems

There was an issue with the latest straight.el commit. https://github.com/doomemacs/doomemacs/issues/6960 One way to fix it, is to update straight repo and getting latest version of straight , that ...
Tinker's user avatar
  • 116
8 votes

Key bindings For Doom Emacs

To describe a key sequence SPC h k runs helpful-key and will describe what the key sequence does in the current context. This will take the full key sequence, e.g. SPC h k then g g , and describe what ...
unl0ckd's user avatar
  • 81
7 votes
Accepted

How to copy commit hash from Magit status buffer?

After I open a Magit status buffer and make a commit, I commonly also want to copy that commit's hash With vanilla Emacs bindings in the Magit status buffer: M-w (magit-copy-buffer-revision) saves ...
Basil's user avatar
  • 12.5k
6 votes

how to set ranger to be default mode in dired in Doom emacs?

Doom's :emacs dired module has a +ranger flag. Enable it and run doom sync on the command line. i.e. uncomment :emacs (dired +ranger) in ~/.doom.d/init.el. Then ranger will be the default UI for dired....
Henrik's user avatar
  • 350
6 votes

How can I get `+vterm/toggle` to popup from the right side of the screen instead of from the bottom?

Credit to @henrik: You need to use a popup rule. The default is defined here: (set-popup-rule! "^vterm" :size 0.25 :vslot -4 :select t :quit nil :ttl 0) Just add side: right and have the ...
Jacob Pavlock's user avatar
5 votes

Couldn't resize project sidebar is doom emacs

Either set treemacs-width explicitly by adding something like (setq treemacs-width 30) to ~/.doom.d/config.el Otherwise press tw to toggle fixed-width mode in treemacs, then you can resize it. ...
Rajkumar Natarajan's user avatar
4 votes
Accepted

Org Roam Database Missing

The variable which you are looking is org-roam-db-location It's defined in org-roam-db.el The full path to file where the Org-roam database is stored. If this is non-nil, the Org-roam sqlite database ...
itirazimvar's user avatar
4 votes
Accepted

doom emacs "Symbol's function definition is void: make-treemacs-theme"

This fixed the problem for me: ~/.emacs.d/bin/doom build Doing doom build recompiles and symlinks all installed packages. I figured this out after seeing a comment on a Github issue about this exact ...
jdueck's user avatar
  • 56
4 votes

Why do many buffer switching commands in Doom Emacs skip over buffers that aren't visiting files? How can it be prevented?

I found that the behavior is caused by two of the functions in doom-unreal-buffer-functions and can be prevented by redefining the variable without those functions, like this: (setq doom-unreal-buffer-...
kevincasey's user avatar
3 votes
Accepted

How to copy the search result (using Swiper) from search buffer in doom emacs?

From the swiper search, type C-c C-o That will open a separate buffer with the search results. From there you can copy whatever you like just like you can from any other buffer.
izkon's user avatar
  • 1,888
3 votes

error while loading shared libraries: libpoppler.so.101: cannot open shared object file: No such file or directory

TL;DR Go to path/to/.emacs.d/elpa/pdf-tools-xxx/build and run make clean to clean previously compiled contents manually. Restart emacs and let it build pdf-tools. Then, pdf-tools works again :) I ...
Guangyu Zhu's user avatar
3 votes
Accepted

Org mode tag column setting is ignored

Doom is meant to be configured via ~/.doom.d/config.el. Try setting the org-tags-column in that file. E.g.: ;; in ~/.doom.d/config.el (after! org (setq org-tags-column -80) ;; ... other org ...
mbil's user avatar
  • 46
3 votes
Accepted

Couldn't resize project sidebar is doom emacs

I had to add these lines to my doom config in order to allow resizing via mouse to work: (setq treemacs-width 30) (setq treemacs--width-is-locked nil) (setq treemacs-width-is-initially-locked nil)
Rotareti's user avatar
  • 476
3 votes
Accepted

Auto-saving after lsp refactor

That CL line is stale, I will remove it. To achieve what you want use: (add-hook 'lsp-after-apply-edits-hook (lambda (operation) (when (eq operation 'rename) (save-...
Ivan Dimitrov Yonchovski's user avatar
3 votes
Accepted

File local variables doesn't work

As explained by @NickD, org-duration-format isn't a safe variable: (get 'org-duration-format 'safe-local-variable) ; nil So there are two ways: Set enable-local-variables to t for getting asked if ...
DPD-'s user avatar
  • 251
3 votes

No colored png icons in treemacs (Doom Emacs)

This seems to be due to a new variable added to Doom Emacs. This sets the icons to be the familiar all-the-icons set. (setq doom-themes-treemacs-theme "doom-colors")
tefkah's user avatar
  • 111
3 votes
Accepted

Capturing output scheme when executing a code block in org-mode

Find the path of ob-scheme.el, for me that is ~/.emacs.d/.local/straight/repos/org/lisp/ob-scheme.el and then in function org-babel-scheme-execute-with-geiser, change geiser-eval-region to geiser-...
Jiahao Liu's user avatar
3 votes

Emacs modeline and minor modes in a list

The minions package does exactly this and is, apparently, compatible with the doom modeline.
Fran Burstall's user avatar
3 votes
Accepted

Doom Emacs does not correctly render the colors on ssh terminal

I discussed the problem on the emacs mailing list [1] The problem was that my theme assumes 24-bit color, and my remote machine is not advertising that capability. So I followed the emacs docs https://...
vincenzopalazzo's user avatar
2 votes

Using emacs for ruby development with asdf version manager

I think there is now an Emacs lib fixing the issue for you by setting the proper paths: https://github.com/tabfugnic/asdf.el
Tomek Wałkuski's user avatar
2 votes
Accepted

Adding a new code formatter

In the end, putting the following in config.el worked: (set-formatter! 'erlfmt "erlfmt -" :modes '(erlang-mode))
beta's user avatar
  • 131
2 votes
Accepted

View a history of commands

Type C-hl to run view-lossage which will show you the last several keystrokes, and which commands they are bound to in the current buffer (which might not be the same as the commands they were bound ...
phils's user avatar
  • 51.9k
2 votes
Accepted

Leave evil's insert state with Control + c

Ex-vimmer also. As Dan pointed out in the comment of OP, binding to C-c is too devastating in emacs. What I do is instead binding to C-c C-c so I can hit C-c like a crazy person to get back to normal. ...
TerryTsao's user avatar
  • 1,226
2 votes
Accepted

Opening a file from a new/different Projectile project in the same workspace in Doom Emacs

There is a variable called +workspaces-on-switch-project-behavior. Its documentation states Controls the behavior of workspaces when switching to a new project. Can be one of the following: t ...
Dargscisyhp's user avatar
2 votes
Accepted

How to suppress the save buffer message in the minibuffer in Doom Emacs? (using Emacs 27)

I use the following to hide "Wrote ..." messages. I use regular GNU Emacs though. (defun sb/inhibit-message-call-orig-fun (orig-fun &rest args) "Hide messages appearing in ORIG-...
Swarnendu Biswas's user avatar
2 votes
Accepted

User emacs has no home directory

You should look at emacs --help. The switch to use here should be "-l" instead. Additionally, you also need "-q" so that Doom's init.el won't be loaded.
Daanturo's user avatar
  • 180
2 votes
Accepted

Doom Emacs -- Use a library

Add (require 'org-inlinetask) to your init.el file.
John Kitchin's user avatar
  • 11.9k
2 votes
Accepted

Cannot set correct size for variable pitch font in Doom Emacs

I found the answer. Doing this does the trick: (use-package! mixed-pitch :hook (org-mode . mixed-pitch-mode) :config (setq mixed-pitch-set-heigth t) (set-face-attribute 'variable-pitch nil :...
ajallooe's user avatar
  • 103
2 votes
Accepted

Doom-emacs - How to align chinese characters in org-tables

Just use Hiragino Sans GB font! (setq doom-font (font-spec :family "Source Code Pro" :size 15 :weight 'normal :width 'normal) doom-variable-pitch-font (font-spec :family "Source ...
Ishmael7's user avatar

Only top scored, non community-wiki answers of a minimum length are eligible