Questions tagged [config]

The tag has no usage guidance.

Filter by
Sorted by
Tagged with
0 votes
1 answer
29 views

How do I add custom keybindings in spacemacs?

I want to bind Ctlr+s to "save current buffer" (currently SPC f s). How can I do this? When I search online, I find many complicated explanations of how to do very specific things, like how ...
user avatar
  • 113
0 votes
0 answers
22 views

Evil: Edit mode on new Org mode heading

When using Evil in Org mode, Ctrl-Enter properly starts a new heading. However, it leaves the cursor in Normal mode. How could one configure Emacs to enter Insert mode when pressing Ctrl-Enter?
user avatar
0 votes
1 answer
12 views

Paste `shell-command-to-string` result after cursor position

I use shell-command-to-string to automate some common tasks. However, these strings must be pasted after the cursor. How can I configure shell-command-to-string to paste after the current cursor ...
user avatar
0 votes
0 answers
42 views

Doom Emacs Loads Kaolin-Ocean Theme but Doesn't Recognize Theme When Setting Custom Face

I am using Doom Emacs, and have the following snippet in my config.el: (if (display-graphic-p) (setq doom-theme 'kaolin-ocean) (setq doom-theme 'doom-vibrant)) (let ((custom--inhibit-theme-...
user avatar
1 vote
1 answer
72 views

How to specify lsp configuration messages in emacs?

I'm trying to configure rust analyzer to expand proc macros. According to it's documentation I have to configure my editor (i.e. emacs) to send this JSON as a LSP message: { "cargo": { ...
user avatar
0 votes
1 answer
93 views

What to put into 'init.el' vs 'config.el' in Org-mode?

I'm using Org-mode to configure Emacs in a file 'config.el', which is really unstructured meanwhile. On the other hand, lots of configurations (for exemple the configs made with the menu) are in Emacs'...
user avatar
0 votes
2 answers
438 views

Projectile: How to include files of a sub directory into the project of of it's parent directory?

Given a project directory my-project which projectile correctly identifies because it is a git project. Inside my-project there is a my-module directory. It is a git submodule and therefor projectile ...
user avatar
  • 242
2 votes
1 answer
161 views

Emacs org mode WYSIWYG editing

Intro Is it possible to replicate the following rendering of org mode blocks like in LogSeq? I have done some research but failed to find any kind of solution that would achieve it and I have a ...
user avatar
0 votes
1 answer
115 views

Setting latex compiler

I was happily running emacs with a locally installed texlive in ~/texlive/2021 on manjaro KDE. But I decided to switch to Gnome. So, installed necessary packages, removed the ones I did not need and ...
user avatar
  • 1,668
1 vote
1 answer
93 views

How to correctly set the path?

I've been unable to run the elixir shell using alchemist-iex-run because the erlang executable erl is not found in my path. Here's the error: /opt/homebrew/Cellar/elixir/1.12.1/bin/elixir: line 230: ...
user avatar
  • 173
0 votes
1 answer
38 views

how to stop emacsclient on terminal insert `[I]` when I open a file?

I'm using emacs on MacOS (v11.4 Big Sur) installed from homebrew-emacs-plus and, every time I want to open a file for a quick edit on the terminal (on iTerm2) using emacsclient, a character gets ...
user avatar
  • 111
0 votes
2 answers
122 views

use-package session example please

I want to setup session with use-package but I don't know elisp except copying from working code. Here is what I've copied: ;;;_* session (use-package session :if (not noninteractive) :load-path &...
user avatar
  • 387
1 vote
0 answers
15 views

Release terminal filestreams on start

I want emacs to release (instead of grabbing) the parent terminal when started through the command line. Better if it is possible to send error messages to some temporary file. By that I mean ...
user avatar
  • 227
0 votes
1 answer
38 views

Add custom agenda options instead of replacing the whole set

I use some custom agendas for work and some for personal stuff. At the moment I load a huge set of custom agendas in org-agenda-custom-commands containing all agendas for work and for personal stuff. ...
user avatar
0 votes
0 answers
34 views

Can't reproduce my (spacemacs) config

Two PCs, same version of manjaro on both, same emacs version, same spacemacs version/branch, same config file. Problems with python mode and company: On my second PC, autocomplete doesn't work ...
user avatar
  • 1
1 vote
0 answers
883 views

Doom emacs config does not fully load at start up

I am on Doom emacs, and have placed various scripts in my config file. These are mainly new keybindings and options for packages, e.g. (define-key org-mode-map (kbd "s-;") 'org-agenda) ; ...
user avatar
3 votes
1 answer
173 views

How to change Emacs' word movement behaviour?

I want to do this on forward-word: (| shows the cursor position) Normal Behaviour: int main(int argc, char *args[]) { int a = 45|; printf|("%i", a); } What I want to do: //forward-...
user avatar
  • 31
1 vote
1 answer
47 views

Force magit to ask for confirmation before deleting a branch

I would like to have magit ask for confirmation when I've told it to delete a particular branch. Currently it seems that magit considers the selection of a branch to delete to be the confirmation, as ...
user avatar
  • 1,578
0 votes
1 answer
94 views

Git Repo for Doom Config With Different Platforms

I have emacs on two separate platforms, and I would like it to function in much the same way on both, but there is some platform-dependent configuration as well. I have created a git repository in my ....
user avatar
1 vote
1 answer
122 views

Change location for straight.el working directories?

I’d like to put my dotConfig files into DropBox, including my .emacs.d folder. I’d like to use these across computers and across OS’s. I’ve split out part of my init.el into per-computer files (...
user avatar
2 votes
1 answer
188 views

Adding Spacemacs documented layers fails

Adding layers existing in the layer section of the .spacemacs documentation results in failed test in the dot-test-results buffer generated after reloading the .spacemacs file (with SPC-f-e-R). ...
user avatar
  • 33
0 votes
0 answers
105 views

How do I reload config in other instances of emacs?

Say, I changed ~/.emacs, but I have another instances of emacs running. I believe unless I do something, they might change the config (because they have a stale notion of its contents), which in turn ...
user avatar
  • 229
0 votes
1 answer
158 views

Emacs config file when installed using snap

I installed Emacs 26 on Ubuntu using snap. Where to find the Emacs configuration file in this context ?
user avatar
1 vote
1 answer
174 views

How to configure emacs to start in the middle of the screen, and not in the top left corner?

Currently have a GUI version of GNU Emacs v.26.3 (on MacOS Catalina, also have a similar version on Ubuntu 16.04), and because I'm just getting started with the editor, I have this question: how do I ...
user avatar
0 votes
0 answers
72 views

Org-mode export bullet as HTML into specific folder with extra exporting option

I would like to add a extra exporting option to my org-mode export dialog. this option shall export the data as html to a specific folder. I want to press C-c C-e to open my export dialog and then ...
user avatar
  • 111
0 votes
1 answer
35 views

How to make emacs to launch sql modes runtime window always at the bottom?

When using M x sql-postgres to launch the SQL mode window, emacs (as of 25.x) seems to be making smart choices about where the SQL run-time window will show. That is, it splits the viewport and shows ...
user avatar
  • 910
0 votes
1 answer
360 views

How can I save a personal bookmark file?

I work on doom-emacs and keep personal configuration in .doom.d, thus leave the gene config .emacs.d. Today, I re-installed doom.emacs to .emacs.d, but find all my bookmarks disappeared when launch ...
user avatar
  • 1,089
0 votes
1 answer
507 views

Activate personal configuration to the config with load-file and require

I created personal my-config in .doom.d and have 'my-org-agenda` etc within it. #+BEGIN_SRC shell :results output tree ~/.doom.d | head #+END_SRC #+RESULTS: #+begin_example /home/me/.doom.d ├── ...
user avatar
  • 1,089
0 votes
1 answer
283 views

How to use an Easy PG encrypted custom-file?

So, inspired by this article. I decided to try adding the following to my init.el: (setq custom-file (expand-file-name "secret.el" user-emacs-directory)) (load custom-file) Where the file in ...
user avatar
  • 135
2 votes
1 answer
4k views

Is it possible to change to Emacs input mode with Doom Emacs?

It's default input mode is vim. Didn't find the toggle option like Spacemacs with M-m t E. https://github.com/hlissner/doom-emacs
user avatar
  • 129
-1 votes
1 answer
50 views

How to include packages into my configuration?

a total newb when it comes to spacemacs. Firstly I just want to get spacemacs to work properly and I have the issues regarding the missing wrapping feature like in the following link (Make visual-line-...
user avatar
  • 167
0 votes
1 answer
90 views

prog-mode-hook not recognizing .ex files in user-config

I'm trying to display prettify-symbols-mode to display for certain characters. I would like for this minor mode to be enabled across all programming languages - thus prog-mode. When I navigate to a ....
user avatar
2 votes
1 answer
70 views

How to change org-babel interpreter location

Say I have my ditaa interpreter pointed to at /home/user/.emacs.d/elpa/contrib/scripts/ditaa.jar, how would I set it so it points to a different location?
user avatar
5 votes
0 answers
1k views

Enhance python lsp-mode with elpy functions and keybindings

I've been using Elpy for a long time and have grown used to many of the default keybindings. I recently decided to give lsp-mode a go to see how it compares. I set it up following this blog and made ...
user avatar
  • 543
7 votes
2 answers
543 views

It is possible to instrument a literate Org-mode configuration file with a backing Emacs Lisp file?

It is a common practice to write Emacs configuration files using literate-programming style in Org mode. Unfortunately, while improving readability, this comes with significant programming ...
user avatar
2 votes
2 answers
858 views

make frames and open specific buffers in succession

im trying to launch emacs with specific named frames and want each frame to have a specific buffer opened in a specific frame (ie have the frame named FM opned a dired buffer at `~/~) this is my ...
user avatar
  • 1,615
1 vote
0 answers
56 views

Automatically download external packages

How can I configure my init.el download packages that are not in (M)Elpa and install them automatically (if not already installed)? Something like doing it with wget or with git (as you do in vim) ...
user avatar
  • 63
0 votes
1 answer
188 views

How to change setting for all modes except one?

How can I chance an Emacs config setting (let's say "highlighting of current line") that I set in .emacs as (global-hl-line-mode +1), to work for all modes except one. For example, I want ...
user avatar
  • 125
6 votes
2 answers
324 views

How to make the natural language for Emacs be English?

My computer's default language is Portuguese, and I don't want to change that. But, for some usages (especially programming) it's better to have English output, for example to copy/paste an error ...
user avatar
  • 63
0 votes
1 answer
35 views

remember-mode set custom dateformat for headers

Is there a way I can customize the "header" of a remembered note? I couldn't find it in the docs. With the following set up (use-package remember :bind (("C-c r r" . remember) ("C-c r n" ....
user avatar
  • 1,286
0 votes
0 answers
414 views

how to use multiple emacs distributions?

I'd like to use multiple emacs distributions e.g. spacemacs, prelude, starter-kit and my personal config for demonstration purposes. What would be some recommended ways to realize this?
user avatar
  • 333
18 votes
4 answers
19k views

How to change the current working directory?

how to change the current working directory of emacs? set default-directory doesn't not affect the emacs process's current working directory, which can be verified via lsof -p pid.
user avatar
  • 687
8 votes
3 answers
2k views

Use several Emacs configurations/versions simultaneously

I want to use several emacs configurations/versions simultaneously so that no configuration disturbs each other, each with their own configuration directory and elpa repository. I heard about the ...
user avatar
22 votes
3 answers
8k views

Does emacs have an option to display build settings?

Does emacs have an option or some internal command that displays build time settings and whatever features it supports? A good example is the nginx -V command which lists the ./configure options it ...
user avatar
  • 1,157
0 votes
1 answer
32 views

Having same commands in different Emacs configuration files.

I am using Prelude Emacs and it has different configuration files. I keep my configuration files inside ~/.emacs.d/personal/. . Say, I have a command (menu-bar-mode 1) that enables menu bar inside ...
user avatar
  • 317
1 vote
0 answers
217 views

Organizing configuration for publishing images created via TikZ inline code

I use Emacs + org-mode to maintain my website. Here some related parts of my configuration: (defvar personal-website-remote-directory-prefix "/ssh:***:/srv/www/stefanorodighiero.net/") (defun ...
user avatar
  • 221
0 votes
1 answer
333 views

What is the emacs/elisp equivalent of 'include'?

I added some define-key commands to the dotspacemacs/user-config function in .spacemacs ;; Fix SHIFT + arrow keys inside screen/tmux (define-key input-decode-map "\e[1;2A" [S-up]) (define-key input-...
user avatar
  • 1,157
6 votes
2 answers
5k views

File error: Cannot open load file, no such file or directory, multi-web-mode

I want to load the multi-web-mode package and have put it in ~/.emacs.d/ or ~/ or ~/.emacs.d/lisp/(so far). My .emacs contains the standard from the multi-web-mode distribution: (require 'multi-web-...
user avatar
1 vote
1 answer
658 views

Copying Emacs configuration to different computer

I configured Emacs on one computer and copied ~/.emacs to a different computer. That other computer uses a newly installed operating system. Both computers run Ubuntu 16.04 with the latest updates ...
user avatar
  • 845
2 votes
3 answers
2k views

two different config files for Emacs

I am looking for method to use two different config files - init files. First config: when I am coding in full Emacs windows (open file as emacs namefile this define ~/.emacs_conf2) Second: when I ...
user avatar