Questions tagged [doom]

Doom is a configuration framework for GNU Emacs tailored for users who want less framework in their frameworks and the performance of a hand rolled config (or better). It can be a foundation for your own config or a resource for Emacs enthusiasts to learn more about our favorite OS. https://github.com/hlissner/doom-emacs

Filter by
Sorted by
Tagged with
1 vote
1 answer
149 views

GTK segfault when using xwidgetson emacs27.2

Im trying to use emacs-27.2 with xwidgets support on a Ubuntu 20.04.4 LTS x86_64 machine.Im using a doom emacs config but every time i launch application that needs xwidgets support (i.e org-roam-ui ) ...
0 votes
0 answers
13 views

org mode TAB doesn't unfold headings

I have the strangest problem - ever since reinstalling Doom I can only fold org headings but then they're stuck folded.. TAB doen't do anything, although I did check and it's still bound to org-cycle.....
0 votes
1 answer
127 views

Replying to all recipients with Notmuch and msmtp

I have tested sending an email to multiple recipients with Notmuch through msmtp and it works. I can also copy all recipients of email to kill-ring (via notmuch-show-stash-to), no problem. However, ...
0 votes
1 answer
70 views

How to define Shfit+Ctrl keybinding?

I can't seem to press S-C-c - it gets registered as C-c... Why? I can't even think of any reason why this type of situation would come about? UPDATE: it seems like evil vim keybindings are to blame......
-1 votes
0 answers
32 views

Todo system like in doom emacs

In org-mode, i am basically cycling through all states with org-todo. In doom emacs, i get can choose the state. How am I able to emulate the doom emacs behaviour in vanilla emacs like this: call org-...
0 votes
1 answer
52 views

Store sessions on idle and use specific name for each stored session

I usually have multiple instances of doom emacs running (one for every project). I use this line in my config to save the session of each instance after 10 seconds idle time. (run-with-idle-timer 10 t ...
0 votes
0 answers
24 views

Doom Emacs kill-word binding

My keybindings say I can hit C-<delete> to run kill-word. This does not seem to work for me. When I hit C-<delete> it only delete a single character to the right of my cursor. How can I ...
1 vote
1 answer
182 views

Slow start-up in MS Windows and relation to the Windows registry

I am using Doom in MS Windows with Emacs 27.2. I am experiencing some very slow start-up times (I included the output of benchmark-init/show-duration-tree at the end). Also, the first actions I ...
0 votes
0 answers
17 views

How to always use tabs when pressing the tab key?

I use an indentation sensitive language (imba) and I need to always use tabs. I'm using doom emacs and I'm also writing a wip major mode for Imba. But I press tab and it adds indentation using tabs (a ...
0 votes
1 answer
170 views

Highlight single character at column 80

I am trying to highlight just a single character on a line when it is on the 80th column mark. I am using Doom Emacs, which did it on in on a previous Emacs version, but I updated my operating system,...
0 votes
1 answer
35 views

ipython shell syntax error with "?" in string in `python-shell-send-string`

When in the IPython shell, ?open returns help on the "open" function. But when I send it with python-shell-send-string it throws a syntax error saying "?" is not recognised. I can ...
1 vote
1 answer
899 views

Emacs DOOM does not show tabs although 'centaur-tabs' is enabled

I'm currently using DOOM emacs. I enabled 'centaur-tabs' in ~/.doom.d/init.el by using (tabs +centaur-tabs). Configures are: (after! centaur-tabs :ensure t ...
0 votes
1 answer
230 views

Doom emacs dired +ranger not obeying evil-mode

I am using doom emacs and in my init file I have (dired +ranger) The problem is when I open dired, I cannot press tab to select for example. I have first to toggle off evil-mode. If I do, I lose all ...
0 votes
1 answer
563 views

Trying to set org-clock-sound for org-timer

I'm trying to set up a notification alert for org timer. I'm using Dunst on Arch for notifications. Used the following lines in my config file: (require 'org) (setq org-clock-sound "~/Downloads/...
0 votes
1 answer
1k views

Doom Emacs start-up problems

Running Doom Emacs 2.0.9 on Emacs 27.1. In my init.el I have org-roam enabled like so: :lang (org +roam +journal) In my config.el I also load org-habits, hide it in initial agenda view and set-up a ...
0 votes
1 answer
1k views

company-mode: no completions found

I am new to emacs (long-time vim user). Specifically, I am using doom-emacs. Doom is supposedly set up to use company-mode for auto completion, but I have not gotten it to work. I have the following ...
1 vote
1 answer
46 views

pdf-tools: could not determine link -lib interface

While trying to install pdf-tools on doom emacs (28.2) on Termux android, I get this error: -*- mode: compilation; default-directory: "~/.emacs.d/.local/straight/build-28.2/pdf-tools/build/server/...
1 vote
0 answers
55 views

Is there any way (built-in or not) to display a sub-tree as a top level tree when narrowed?

When I narrow to a subheading in emacs, I would love for it to be displayed as if it was the top level as opposed to it staying the level it actually is. For example consider this tree * Heading 1 ** ...
2 votes
3 answers
825 views

How can I rebind keys in pdf-mode, using Doom?

I'm really struggling to remap some keys in pdf-view-mode. This is what I have so far: ;; Unbind keys; see https://github.com/hlissner/doom-emacs/blob/develop/docs/faq.org#my-new-keybinds-dont-work (...
0 votes
1 answer
891 views

Completely disabling flycheck in Doom Emacs

I'm setting up Doom Emacs, and I want to remove flycheck entirely. I'm having a bit of trouble doing that, though. As an example, I'm working with Ruby, with this setup: (doom! :completion company ...
4 votes
3 answers
1k views

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

I am using Doom Emacs, and I frequently use the vterm popup/toggle functionality (defined as +vterm/toggle here, which is used, as the name suggests, to toggle a vterm buffer. The default behavior is ...
7 votes
1 answer
1k views

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

Full error (on the bottom line): Error (doom-first-file-hook): Error running hook "global-git-commit-mode" because: (void-variable transient-base-map) Hello! I'm running this on an M1 chip ...
0 votes
0 answers
8 views

How to show opened tab only on one side with tabs?

If enable tabs in .doom.d/init.el, when split window to two sides, the tab content showed the same on each side. How to make it show new opened tab on one side only?
0 votes
0 answers
13 views

How to set brace style for empty function in Doom emacs?

When defining an empty function Doom emacs makes it such that the function automatically looks like this: // after inserting braces void my_func() {} // after pressing enter void my_func() { } /...
0 votes
1 answer
191 views

How to remap the search backwards evil-ex-search-previous command of evil?

I want to remap evil-ex-search-previous to some other key than ,. I tried (define-key evil-motion-state-map "," 'evil-avy-goto-char-in-line) (evil-define-key 'normal magit-mode-map ",&...
4 votes
1 answer
666 views

Using emacs for ruby development with asdf version manager

I have installed a (doom) emacs to start developing with Ruby. So far I have mainly used Sublime Text but because of reasons I want to give emacs a chance. I tried Spacemacs too but uninstalled this ...
0 votes
1 answer
363 views

C++ lsp-mode: inconsistent behavior between remote and local projects

I've run into a bit of an odd problem trying to use lsp-mode. My problem setup is as follows: I'm working on a C++ project on my computer, and I'd like to be able to use lsp-mode with it. The catch is ...
2 votes
1 answer
435 views

How to set major mode localleader keybinding to both `SPC m` and `comma` in Doom

I want to be able to use both SPC m and , as major mode localleader keybinding in Doom. With my current Doom setup, I can only use , as localleader key. SPC m is undefined currently.
0 votes
0 answers
32 views

Evil Mode: How to get 'q' to kill Occur buffer + window

I recently started using Doom Emacs. I'd like to use Occur mode more frequently (via occur, multi-occur, etc.), but every time I open an Occur mode buffer in a split window, the only way to kill the ...
0 votes
1 answer
57 views

hl-line-mode -- how to highlight only the text on the current line (don't highlight leading and trailing whitespace)?

I'd like to highlight only the text in between the leading and trailing whitespace on each line. For example, I'd only like to highlight the region marked by the double arrow <--> for the ...
1 vote
1 answer
42 views

Presenting Python function arguments in minibuffer for selection

I have written a Python function that takes a string input and performs a semantic search in my org-roam-directory and outputs the results in the following format after 2 seconds of computation: [{'...
0 votes
0 answers
20 views

How to present my semantic search model results in minibuffer to select them and open file?

I have an org-roam directory where I keep all my notes in org files. Currently to search through my notes, I use keyword searching using ripgrep with rg.el. With this method, rg pops up the results in ...
0 votes
1 answer
204 views

How to clear project cache with Doom Emacs?

When add a project with path /Users/me/folerd1/myproject, it works well. Use SPC p d to delete the added project myproject under folder1 path, then add it under another path /Users/me/folder2/...
0 votes
1 answer
82 views

Footnote-like custom function for org-roam-insert

I am trying to make a custom function for org-roam which inserts footnote-like links in the current note. The idea is to insert links on this way The logistic regression [fn:20200612000001]... * ...
0 votes
0 answers
55 views

How can I selectively disable addon LSPs on a project, without blocklisting the project itself?

I work on several open source and commercial ruby projects, all of which have different sets of development tools installed. Some of them have solargraph available, some do not. Of those, some have ...
1 vote
1 answer
1k views

Haskell-mode in Doom emacs returns: 'Error running hook "lsp!" because (invalid-function lsp!)'

I am running Xmonad window manager together with Xmobar on ArchLinux 5.14.12-arch1-1. I have ghc, cabal, and stack installed. Suddenly Doom has started having a problem with Haskell files and is ...
1 vote
1 answer
221 views

Cannot enable FACE attributes with (custom-theme-set-faces!)

config.el (custom-theme-set-faces! 'doom-ir-black '(mode-line :foreground "blue") ;;'(mode-line :foreground t) ;; also doesn't work ;;'(mode-line :foreground "#000000&...
1 vote
0 answers
39 views

`add-load-path!` relative directory in Doom Emacs defaults to `~/.emacs.d/lisp` instead of ~/.doom.d/ where `config.el` sits

As described in the title above, the following code in config.el: (add-load-path! "lisp") adds "home/user/.emacs.d/lisp/lisp" to load-path instead of "/home/sati/.doom.d/lisp&...
0 votes
2 answers
49 views

emacs command window is too small

When I C-x to show the list of commands, the window of commands is chopped like below how can I make it show the full?
0 votes
1 answer
363 views

Doom - setting code formatter for specific file type

How can I change formatter used for specific file type in doom-emacs format module? So far I've been happy with using mostly doom defaults and haven't gotten into writing custom configurations and ...
0 votes
0 answers
88 views

How do I stop auto completion pop up when it doesn't recognize word?

I'm using doom Emacs to edit lisp files using sly sbcl. When I'm typing something and the auto completion stops suggesting relating words to what I'm typing, the whole autocomplete list pops up. So if ...
2 votes
2 answers
3k views

How to use doom emacs as a golang ide quickly?

I installed the newest doom emacs on macOS. Also configed language packages as $ emacs ~/.doom.d/init.el :lang (go +lsp) :tools lsp $ ~/.emacs.d/bin/doom sync When I open a .go file, the code became ...
0 votes
0 answers
21 views

Give literate config access to Doom Emacs module docs

I am using Doom Emacs and within the default ~/.doom.d/init.el I can use M-x +lookup/documentation while my point is on a module name to go to that modules documentation. I may be misunderstanding, ...
0 votes
0 answers
24 views

Disable search-as-you-type in Doom Emacs

Is there a way to disable "search as you type" functionality in Doom Emacs? Either with the Vim equivalent of / or through I-search C-s. With large documents, that functionality causes Emacs ...
0 votes
0 answers
8 views

+eval/buffer doesn't run current buffer

when I run +eval/buffer, I get the following output Traceback (most recent call last): File "qr_9TTN6Y.py", line 1, in <module> import numpy ImportError: No module named numpy 2 ...
0 votes
1 answer
42 views

Ispell does not seem to use hunspell

I tried to set up ispell to use hunspell with this post. but it seems like ispell is still not using hunspell. Ispell in Emacs would mark this word as wrong: Schulwochen (German) $ hunspell -d de_DE ...
4 votes
1 answer
2k views

Automatically activating python virtual environments with pyvenv

I am using pyvenv with doom and am trying to have my python virtual environments automatically loaded when I enter a certain project. I saw this relevant issue on pyvenv and have added the following ...
1 vote
3 answers
80 views

Seamlessly replace a keyboard input key sequence

I need something like abbrev, just without any extra spaces, including spaces which trigger the replacement. I experimented with keyboard shortcuts, like this: ;;(general-auto-unbind-keys) (global-set-...
0 votes
1 answer
220 views

In Doom Emacs, when cursor is highlighting a line, it indents a few pixels in. How to turn off the indent and just do line highlighting?

I can't find a setting to turn off that small pixel indentation when cursor is highlighting the line you're on. It makes it hard to try to type text to align when the line itself is indented a few ...
1 vote
1 answer
105 views

How can I get doom-modeline to show the correct number of new emails?

Doom-modeline has a feature where it shows the number of new emails you have. But for some reason, they're capped at 99, so the modeline always shows 99+, no matter what. How can I get this to show ...