Stack Exchange Network

Stack Exchange network consists of 175 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

Questions tagged [customize]

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

1
vote
1answer
16 views

“void-variable” error when adding advice to `kill-ring-save`

I am trying to add an advice to kill-ring-save and kill-region, so that when I call them with no active regions, instead of throwing an error, the line the point is currently on would be marked ...
0
votes
1answer
56 views

Should I use “require” or “load” when writing my own configuration? [duplicate]

I am following this tutorial, and the author is doing something like this: ~/.emacs.d/init.el ;; add your modules path (add-to-list 'load-path "~/.emacs.d/custom/") ;; load your modules (require '...
0
votes
1answer
43 views

How to use customize to turn on viper mode by default?

I see on the Viper page that the way to turn on viper mode by default is (setq viper-mode t) (require 'viper) I've been trying to move over to using customize to do emacs configuration. Is there a ...
1
vote
0answers
20 views

Docking a matplotlib window-manager window to an Emacs window

Short version: I want a way to "dock" a matplotlib window-manager window into an Emacs window (similar to the image below), while still keeping the functionality (e.g. zooming) offered by matplotlib. ...
1
vote
1answer
19 views

How best to define nullable integer customizable variables?

I would like to define a variable using defcustom so that it can be customized by users of an emacs package. The variable is an integer (let's call it spam-override), and its function is to override ...
0
votes
1answer
52 views

Customizing org-latex-title-command to edit title page

I would like to know how to go about editing and understanding org-latex-title-command. So far it is set to \maketitle but the documentation just has this: The command used to insert the title ...
1
vote
0answers
11 views

How to setup Meta key when using VNC from Mac to Centos 6? [migrated]

I'm running emacs 26.1 on a Centos 6.9 machine displaying via TightVNC server to a client running on my Mac OS X 10.14.2. To make things tricky, I'm also using Dvorak keyboard layout. When I run ...
0
votes
1answer
39 views

How to add font styles to org-capture templates?

I want to change the color and font style in my template. I use custom-set-variable and cannot set, for example, italic style (custom-set-variables '(org-capture-templates (backquote (("d" ...
2
votes
0answers
44 views

How to define a “composite type” with the “group” constructor?

I am trying to define a composite type using the "group" compositor (see Elisp Manual, section "Composite Types"). Previously, I managed to define a composite type with the "list" constructor. The ...
4
votes
2answers
140 views

Change color of org-mode checkboxes

I'd like to change the color of unchecked checkboxes in org-mode. To be exact, I want them to be displayed in the color of TODO keywords. So I've tried to tackle this using custom-set-faces and :...
1
vote
1answer
56 views

I'd like a global mode-line in my frame [duplicate]

A previous comment... In the following I'm calling mode-line to the mode-line itself or any of its variations/replacements (e.g. powerline) Statement of the problem In the next picture, you can see ...
0
votes
2answers
76 views

How can I see multiple specific todo-states in a custom agenda view without abusing org-agenda-skip-function?

I am trying to build a 'cleanup' agenda view, with a section for all tasks which are done and a review section for tasks in the HOLD or WAITING states. HOLD and WAITING are states I've defined as ...
1
vote
1answer
33 views

macro takes multiple pairs of arguments

I found this snippet of code from oremacs (defmacro csetq (variable value) `(funcall (or (get ',variable 'custom-set) 'set-default) ',variable ,value)) I would like to expand this macro so that is ...
3
votes
2answers
76 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
57 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
71 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
93 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
79 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
224 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
132 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
32 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
46 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
103 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
532 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
105 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
25 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
47 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
105 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
62 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
125 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
65 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
52 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
37 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
80 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
183 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
71 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
112 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
56 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
344 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
94 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
166 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
120 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
384 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
92 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
27 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
433 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 ...
2
votes
1answer
440 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
3answers
170 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
52 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 ...
1
vote
1answer
251 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 `(:...