Stack Exchange Network

Stack Exchange network consists of 174 Q&A communities including Stack Overflow, the largest, most trusted online community for developers to learn, share their knowledge, and build their careers.

Visit Stack Exchange
Join us in building a kind, collaborative learning community via our updated Code of Conduct.

Use this tag for questions about modifying a particular action or task within Emacs.

3
votes
2answers
45 views

Separate customizations according to modes

Using emacs 25.2.2 on Kubuntu 18.04. I have customized several variables using M-x customize-variable. So, there is a large custom-set-variables section at the very beginning of my init.el. Moreover, ...
2
votes
1answer
23 views

How to create a defcustom variable that accepts only a vector of strings?

I am using repeat for now. But I don't know how to have the same for vector. EDIT: I want INS and DEL options like in repeat.
1
vote
1answer
41 views

Customize eshell redirection to buffer

In eshell I can redirect the output of a command (foo) to a buffer (bar) by inputting: foo > #<buffer bar> I want to customize this syntax the following way: foo > #bar Is it possible ...
2
votes
2answers
75 views

How to set up Emacs to cycle through files

I'm in a situation where I would like to look through a lot of text files as they are being created. I would like to configure Emacs to do the following: Launch from a script with directory argument ...
0
votes
2answers
44 views

Disabling a minor mode in a specific buffer

Running spacemacs 0.200.13 on emacs 25.2.2 on Kubuntu 18.04. I have globally enabled golden-ratio-mode (a minor mode). But I would like to disable it in a particular buffer, *Org Agenda* to be ...
1
vote
1answer
49 views

Custom theme based on major mode or file type

How can I customize emacs to use a different theme based on major mode or file-type? And, could it work to have different themes active in different windows? My use case would be: have (1) one ...
0
votes
0answers
61 views

(How) Can I change the menu/tool bar (font) size in emacs for Windows?

I recently switched from using emacs (25) via the Windows Subsystem for Linux (WSL) to using the mingw32 versions of emacs available from the gnu download page. Everything works fine, except I want ...
0
votes
0answers
36 views

How to adjust specific colors in solarized-dark for Emacs

I'm using the solarized-dark custom emacs theme - I love the theme in general, but would rather use the theme's red in place of the orange used commonly throughout...I tried changing the hex values ...
0
votes
0answers
21 views

How to enable SHIFT+TAB for multi line code region unindentation?

I have found this code which enables both TAB and SHIFT+TAB for code region indentation and unindentation. The problem is SHIFT+TAB doesn't work on multi line codes and also we have to place the ...
0
votes
1answer
37 views

Set variable not been read from .emacs

I've set some variables (kept-new-versions, for one) to a higher number (10, it was 2) since I don't mind having a handful of backup files in my dir. I did it using C-h v and customizing the variable....
1
vote
2answers
30 views

Change colours for character differences for diff-mode

I've changed my diff-mode colours according to this article, but the character-based differences are shown in the original(?) and very bright colours, making them quite unreadable. How do I change ...
3
votes
1answer
200 views

How to customize emacs toolbar?

Let say I want to add a Toolbar icon to emacs which when clicked should "Select all" text in the current window. We know for selecting text we can use M-x mark-whole-buffer. How can I use this ...
4
votes
4answers
85 views

Find all customization type mismatches?

Occasionally, defcustoms change their :type and I fail to update my customizations. How can I get Emacs to list all the variables where customize things there's a type mismatch?
1
vote
0answers
22 views

ESS folding for R6 classes

What is the proper way to install, configure and activate folding of R script files? I followed emacswiki.org/emacs/FoldingMode but it doesn't seems to work. I installed folding.el to .emacs/lisp/. ...
1
vote
0answers
41 views

How can I add functions to provide http links?

A recent feature request raised a new area of integration/customization for me. I've developed a package to browse GitHub content and we'd like to be able to store a link to the current 'thing' using ...
0
votes
0answers
73 views

How to edit the list of named/defined colors?

How can I change (insert,delete,rename,…) the list of named colors? I tried to edit /usr/share/emacs/25.3/lisp/term/tty-colors.el.gz and byte-compile after change, but it had no effect. Note: I do ...
0
votes
0answers
21 views

Can Customize configure mode hooks?

Is it possible to configure mode hooks using customize? For example, if I have a plugin and I want to enable it for a certain mode, can I do that with customize? If not, then I will need to write ...
1
vote
1answer
66 views

Remove unused modes

Is there a list with all the modes and packages that come with emacs? I actually want to remove some of the unused packages and modes in emacs.
0
votes
1answer
52 views

Confusing defcustom usage in info.el

I was trying to read the info.el code when I ran across this strange use of defcustom: ;; This is a defcustom largely so that we can get the benefit ;; of custom-initialize-delay. Perhaps it would ...
2
votes
1answer
46 views

How to hop the cursor over parenthesis, brackets, single-quotes, and double-quotes

One of the features I miss in Visual Studio is the ability to hop over closing parenthesis, brackets, single-quotes and double-quotes with tab Does anyone know of a script to do such a thing? Pseudo ...
1
vote
0answers
29 views

Customize-like form

I'd like to create a form, like the one displayed by customize, in order to ask to the user some information. The form should let me provide a description, a default value, and eventually display a ...
0
votes
1answer
48 views

Turning off tooltip does not work

So, after adding fallowing line in to my .emacs file I see no result, whether I'm running emacs in the X window or an terminal. (custom-set-variables ;;; CUSTOM-SET-VARIABLES INSTANCE ;; Init file ...
2
votes
1answer
112 views

Customize Xah Fly Keys

I am using Xah Fly Keys. How should I change the function one of Xah Fly Keys key bindings calls? For example when in Xah Fly Keys command mode space c . calls the find-file function but I would ...
2
votes
1answer
60 views

What is the recommended way to generalize a defcustom from atom to sequence?

In an Emacs package I have a defcustom, say custom-string, that is defined as an atom of type string like so: (defcustom custom-string "foo" "A customizable string." :type 'string) I need to ...
0
votes
1answer
73 views

Start Emacs in VHDL-mode?

I started coding in vhdl and I'm currently using emacs with its vhdl mode as editor on Ubuntu 16.04 OS. However i was wondering if its possible to start emacs already in vhdl mode, meaning I won't ...
2
votes
1answer
41 views

How do I change the Magit section heading background color?

I'm trying to customize the look and feel of my Magit setup. How do I change the background color of the section heading below? In particular, I'd like to change the black background color next to ...
2
votes
1answer
207 views

How to change flycheck symbol?, like spacemacs

Flycheck has a symbol that tells in which line an error or warning have been encountered. I have seen spacemacs has its flycheck symbol changed. Default symbol is a double arrow; while spacemacs's ...
0
votes
1answer
59 views

Cannot set fringe foreground color

I want to change the foreground color of my fringes, in my theme file. I changed (line 84): - `(fringe ((t (:foreground ,bisque-fg :background ,bisque-bg)))) to + `(fringe ((t (:foreground ,...
0
votes
1answer
125 views

How to get rid of the “unsaved” title from the exported agenda document?

When I export the custom agenda view I get this "unsaved" text in the exported PDF document (see blow): Exported PDF Agenda-related code in init.el (setq org-agenda-exporter-settings '((ps-...
1
vote
1answer
78 views

Customize: highlight-symbol-colors added only delta

Windows 10, Emacs 25.1 By default package highlight-symbol has 9 colors. So I add new color, snow, to option highlight-symbol-colors: Screenshot: OK. As a result Customize puts this in my init ...
1
vote
1answer
144 views

How to know which packages have been installed?

Currently I am experimenting with Emacs and playing with many el files. Sometimes packages are installed from those el files or I install with a command M-x package-install. But this may cause ...
4
votes
2answers
76 views

Organizing Info Directory Node

When I open the Emacs info reader, the top directory node is really cluttered. It's difficult enough to navigate that it puts me off from using it. There are a few things that I can't figure out how ...
0
votes
1answer
25 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 ...
1
vote
2answers
229 views

How can I get some environment variables into init.el to construct file paths?

I want to synchronize my emacs configuration through an identical init.el but needs some settings defined according to the host. For instance although init.el will be the same custom-file will vary ...
0
votes
1answer
223 views

How do I move custom- commands into a separate file and include them in .spacemacs?

I don't know whether it is because I started using org-mode but when I checked the .spacemacs file this is what I found: ;; Do not write anything past this comment. This is where Emacs will ;; ...
0
votes
2answers
120 views

Does emacs have some kind of customized popup creator?

Is there some kind of popup creator package which enables me to create some customized cheat sheets to help me with commands I need or haven't yet memorized? I want to create some simple text files, ...
3
votes
1answer
44 views

Prevent bmkp-last-as-first-bookmark-file from being placed in custom-set-variables

I have the following code to set a custom.el file and load Bookmark+: (setq custom-file (concat elf-emacs-lib-home-directory "emacs-config/" "custom.el")) (when (file-exists-p custom-file) (load ...
0
votes
1answer
143 views

No colors for eshell?

I have the following in my code to customize eshell: (setq eshell-prompt-function (lambda nil (concat (propertize (eshell/pwd) 'face `(:foreground "blue")) (propertize " $ " 'face `(:...
0
votes
2answers
239 views

customize creates custom-set-faces unintentionally

I just edited the variable org-M-RET-may-split-line with easy costumize, saved and applied. I checked my dotfile right afterwards and noticed that (custom-set-faces '(default ((t (:foreground "#...
4
votes
1answer
47 views

buffer menu unsort entries

Where can I handle how the control + left-click menu displays entries? This is how it looks when it is displayed the way I want, i.e. with no fancy sorting by file type: And this is how it looks ...
3
votes
1answer
62 views

How to add several files to a fileset at once with a regular expression?

I'm working on the current branch of a game composed of several files. I have created a fileset so I can open all those files at once. The GNU Emacs manual says: Normally, a fileset is a simple ...
1
vote
1answer
50 views

Update customize after change

It seems that once customizable variables are loaded, the Customize interface is not updated on subsequent re-evaluation of those variables, even with eval-defun (C-M-x). For example, adding a :...
1
vote
1answer
432 views

Projectile: show project open buffers when switching project

I have a very large project and generally I work on multiple related projects simultaneously. While switching project I have to type full name everytime (multiple similar named files under different ...
1
vote
2answers
161 views

Restarting emacs changes default font

I'm new to Emacs. Been a vim user. Using M-x customize-face, irrespective of what font I set it to, Emacs always ends up using Inconsolata-g for Powerline font. Default is DejaVu Sans Mono. I tried ...
2
votes
3answers
361 views

How to make size of Emacs frame persistent?

When I start Emacs (by clicking on a desktop icon), its frame is too big for the screen, so the mode-line/mini-buffer area is not visible. It's not difficult to resize and reposition the frame, but ...
1
vote
1answer
29 views

What function is used when selecting a color in a Customize buffer?

I don't like the function that Customize uses to select color. It spawns a new buffer that messes up window configuration, and is also difficult to search. I want to replace this function with the ...
1
vote
0answers
58 views

how to prevent buffer menu from folding

Is there a way to prevent emacs from folding the buffer menu? Example, when I Control + 'right click' on a buffer I see a menu like this: Buffer Menu ----------- JavaScript > XQuery > Custom &...
1
vote
0answers
27 views

Enforcement of customization types

When specifying a customizable variable foo-paths as follows: (defcustom foo-paths nil "Paths for foo-related things." :group 'foo :options '(foo-1 foo-2) :type '(alist :key-type symbol :...
3
votes
1answer
55 views

Customizable variable with predefined alist keys

I'd like to create a customizable variable foo-paths with certain options. (defcustom foo-paths nil "Paths for foo-related things." :group 'foo :options '(foo-1 foo-2) :type '(alist :key-...
4
votes
2answers
119 views

Shifting Emacs Theme from one Computer to Another

I am a little new to emacs and have managed to get the color theme to my liking. However, I want to be able to use the same theme on a different machine and have been struggling to get it to work. I ...