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.

0
votes
1answer
35 views

How to set up personal information alist with defcustom

I would like to have a variable, say my-info that would have an alist attached to it. In normal programming it would look like this: (setq my-info '((my-name . "Giuseppe Sextus-Packus") (my-email . "...
0
votes
2answers
275 views

Customize haddock comments color

How can I change the color of the comments starting with -- | in Haskell mode? When I write a comment in Haskell I get a grey face, but when the comment starts with -- |, as required by Haddock ...
0
votes
1answer
94 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 ...
1
vote
1answer
121 views

how to make non-bold text in Elfeed?

I want search-title-face to be non-bold. Tried to add to my .emacs file this chunk (due to http://nullprogram.com/blog/2013/11/26/): (custom-set-faces '(elfeed-search-title-face ((t :weight ...
2
votes
1answer
602 views

How to customize org-agenda-* faces in .emacs file?

I am trying to customize org-agenda-* faces such as org-agenda-date, org-agenda-date-today, and org-agenda-date-weekend in my .emacs file. Normally, I install the use-package package to lazily load ...
0
votes
1answer
49 views

LaTeX mode: How to select “pdflatex” instead of “latex” for a file automatically?

I have a LaTeX file using lots of PDF figures (mostly because converting figures to EPS is a waste of disk space), so it requires to use pdflatex. I added there lines to the end of my main file: %% ...
3
votes
1answer
640 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 ...
0
votes
1answer
43 views

Saving searches in Customize Group in Emacs

If I type M-x customize in Emacs I am taken to customize-group for the Emacs group. At the top of the screen is a search entry dialogue box where I would normally search for a given string. Is there a ...
1
vote
1answer
21 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
66 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
49 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 ...
0
votes
3answers
183 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, ...
1
vote
0answers
27 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
20 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
110 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
1answer
1k views

Problems Creating Basic Spacemacs Layer

I'm trying to create a basic spacemacs layer. But there's an error loading it, thus its constituent packages. Checked this SO question, but it doesn't seem to apply. Any idea of I'm missing? I'm sure ...
1
vote
2answers
222 views

Choosing files and directories from widgets

I'm looking for the most convenient way to set up a Customize options page to enter a set of directories and then select one of those directories and one file in the selected directory (if possible, ...
0
votes
2answers
70 views

Size of default face from environment variable

I'd like the size of the default face be read in an environment variable. Currently my .emacs reads the frame size from the EMACS_HEIGHT var thanks to the following code in the (custom-set-variables ....
0
votes
2answers
396 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 "#...
0
votes
1answer
45 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" ...
1
vote
1answer
469 views

customize-face and themes bug: workaround?

I'm seeing the following issue with emacs 25. I'm confident there must be a workaround for this because I'm in the process of rewriting my emacs configuration, and my old, ugly configuration with the ...
2
votes
0answers
45 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 ...
3
votes
2answers
86 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, ...
4
votes
2answers
193 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 :...
0
votes
1answer
328 views

Remove linebreak arrow and move last word to next line

When I write text in the emacs editor and the text reaches the right border of the program, emacs continues on the next line and puts an arrow on both sides of its borders. I want to know if its ...
1
vote
1answer
70 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 ...
2
votes
1answer
220 views

`haskell-mode-hook` is nil?

The haskell-mode-hook customizable variable in haskell-mode has a default value of (haskell-indentation-mode interactive-haskell-mode). Yet, after starting Emacs, its value is nil; the "original ...
0
votes
2answers
120 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 ...
9
votes
2answers
813 views

Can I change the background color of the inactive minibuffer?

I tried it with the following settings: (add-hook 'minibuffer-setup-hook (lambda () (make-local-variable 'face-remapping-alist) (add-to-list 'face-remapping-alist '(default (:...
1
vote
1answer
34 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 ...
0
votes
2answers
91 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 ...
2
votes
1answer
397 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 ...
2
votes
1answer
81 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
257 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 ...
12
votes
2answers
829 views

Make Buffer List take focus?

How can I make it so that when I press C-xC-b to access the Buffer List that that buffer automatically takes focus instead of having to switch to it manually with C-xo? I can't find a variable that ...
1
vote
1answer
83 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
102 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
0answers
154 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 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 ...
6
votes
2answers
268 views

What does customize: Set for Current Session do?

I have a variable that I want to switch between two different values and have it apply for the whole session. I'm able to do this using M-x customize-variable and picking "Set for Current Session". ...
1
vote
2answers
253 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 ...
0
votes
1answer
55 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
137 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 ...
4
votes
4answers
115 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
31 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
51 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
115 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 ...
1
vote
2answers
133 views

How to make a Customize setting depend on another? or make a `setq` depend over a Customize setting?

I heard it’s better to use Customize to define variables/settings instead of just some setq inside .emacs.d… because it autoloads when loading packages, because it’s more consistent, more checked/...
1
vote
1answer
143 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
73 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 ...