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.

17
votes
2answers
12k views

How to change the cursor type and color?

I would like to change the cursor, like in Terminal, from the block to the I-Beam cursor. From this: To this: How would I do this? Also, on a side note, how do I change the color of the cursor?
17
votes
2answers
2k views

How can I get undo behavior in Evil similar to Vim's?

The default undo behavior in Evil is too coarse-grained because it considers anything taking place between entering insert mode and leaving it as one edit operation. When you enter a whole paragraph ...
16
votes
3answers
940 views

Set column widths in `ibuffer`

Is there a way to customize the widths of the columns in ibuffer? Specifically, I want to widen the Name column to be able to read more of the buffer names before they get truncated. I have tried ...
13
votes
3answers
1k views

Is there a way to change color of active window's fringe?

To better distinguish between focused window and rest that are not I would love to change this window's fringe color. Discovering customize with fringe keyword I found only how to change its bg color ...
12
votes
2answers
791 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 ...
12
votes
3answers
393 views

describe-face character not under / unreachable by the cursor

I like using a combination of describe-face and customize-face to adjust the appearance of my working environment. Sometime this workflow fails when I want to change the face of a location I can not ...
10
votes
1answer
903 views

How to customize syntax highlight for just a given mode

I would like to change the syntax highlighting in my lua-mode.el without affecting other major modes. Just as an example, I would like "key words" like if, then, else to be in bold and blue typeface ...
9
votes
5answers
3k views

How to Change size of split screen emacs windows?

If I have Emacs split horizontally and on top I'm editing elisp code and on the bottom I am in the shell. By default, Emacs makes the two windows equal in size, but I'd like the shell buffer smaller. ...
9
votes
2answers
2k views

Emacs always ask to trust colour theme at startup

My Emacs always prompts me if it should trust selected colour theme or not. I always answer y and y to trust and remember my choice. I'm loading colour theme manually: (load-theme 'my-favourite-theme)...
9
votes
3answers
868 views

Dired: only reuse buffer for directories

To prevent creation of a buffer every single time I enter a directory in dired I use this: (put 'dired-find-alternate-file 'disabled nil) My problem now is that when I visit a file from dired ...
9
votes
2answers
792 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 (:...
9
votes
2answers
1k views

How can I fill the entire line number bar with a custom background color?

In the screenshot below I have simply set the background of the linum face to some color, however there is a blank region at the end of the buffer and there are gaps between the lines when line ...
8
votes
2answers
281 views

How can I change where the customize puts custom-set-variables

Basically I would like to have (custom-set-variables ...) in a seperate file and for me to load that file. This is just for the purpose of organisation of my init file. How can I change the default ...
7
votes
2answers
92 views

How can I make customize use single quote for quotation?

Is it possible to teach customize to save its variables using single quote ' instead of quote? Example: … '(package-archives '(("gnu" . "http://elpa.gnu.org/packages/") ("...
7
votes
1answer
1k views

How can I add a new colon-command to Evil?

evil-mode introduces vim-style colon commands (such as :wq to save and close). I have a few commands (such as kill-buffer, org-babel-tangle) that I'd like to be able to run through this instead of ...
6
votes
2answers
258 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". ...
6
votes
5answers
758 views

Highlight \n and %s “inside” strings

Is it possible for Emacs to highlight backslash escape (e.g. \n) and format keyword (e.g. %s) inside string, without messing up current modes' faces? Like this:
6
votes
1answer
5k views

How can I prevent GNU Emacs from splitting windows on startup?

Whenever I try to open an existing file with GNU Emacs, the window always split horizontally so as to show two buffers: one buffer containing the file and the GNU Emacs buffer. How can I set up Emacs ...
6
votes
3answers
287 views

Avoid following link when using org-return-follows-link and point is at end of line

The option org-return-follows-link is wonderfully convenient except when the point is at the end of the line where the intention is usually to insert a carriage return. What's the best way to change ...
5
votes
1answer
1k views

Create a file link in org-mode that accepts spaces in the text

My org file looks something like this: * Space Radiation ** Gamma Ray Info - file://Library\March 2015\Gamma Ray Radiation Fundamentals.pdf - some notes However the title has spaces so the ...
5
votes
2answers
404 views

Customize ??? in which-func-mode

I have which-function-mode enabled and from time to time it shows ???. Is it possible to customize this to eg '∅'. I have tried to customize group "Which Func" but did not find something suiteable. ...
5
votes
1answer
127 views

Can you describe a face color in terms of an inherited face color?

Specifically, I want tags in org mode to be a variant of the color of the corresponding heading (e.g. less saturated or lighter). Each org mode heading level is a different color, so I can't just ...
5
votes
1answer
237 views

In table-mode, how do I change the face used for cells?

If I make a table (with M-x table-insert), the background color is a dark blue, and the text color is a light grey. I'd like to make the face different, but I'm not sure what face I need to change. ...
5
votes
1answer
64 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 ...
5
votes
2answers
74 views

How do I determine where a variable is set? [duplicate]

When I execute a M-x describe-variable web-mode-markup-indent-offset I get this output: web-mode-markup-indent-offset is a variable defined in `web-mode.el'. Its value is 4 Original value was 2 ...
5
votes
1answer
103 views

Specify the order in which `defcustom`s are presented in the Customize UI?

I have an Emacs mode. It has a defgroup and a number of defcustoms. Let's say: (defgroup some-group nil "Some group" :prefix "prefix-" :group 'languages) (defcustom some-option-1 t "Option 1"...
4
votes
1answer
111 views

What happens if variable changed through customize is later changed by package maintainers?

For example, lets say a package defines a variable foo: (A B C), but through customize, I remove C from the list. Now the variable foo is (A B). What happens if later, the package maintainers change ...
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 ...
4
votes
2answers
130 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 ...
4
votes
1answer
595 views

Detecting variable changed outside customize

I have used "Customize" to set a value for semantic-lex-c-preprocessor-symbol-file. However, after loading up .emacs, this isn't the value I see. On opening up the "Customize" menu for this variable, ...
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?
4
votes
1answer
165 views

emacsclient directly start eshell command command line

Both of the following work to call a graphical/terminal eshell: emacs -f eshell emacs -nw -f eshell Furthermore, this 2-step process also works: `emacsclient -t -a '' /some/real/file/name Metax ...
4
votes
1answer
374 views

how to define color for part of a comment?

How to make colored some part of comment? Let comment be ;; This is James Bond diary. And I want to make "James Bond" in green. There will be only a few such strings and no places where it will be ...
4
votes
1answer
105 views

How do I set a variable in all programming modes?

I'd like tab-width to be set to 2 in all programming modes. I use prelude (which might be one of the problems), but I have this in my custom.el (which is sort of the analogue to .emacs): (setq my-...
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 :...
4
votes
1answer
877 views

How do you change the text cursor height and thickness?

I would like to change the shape of the cursor to something like the following image: It's a bit taller and thicker than the default one. How do I do that?
4
votes
1answer
956 views

Where is the default color / custom theme defined?

When you start Emacs with emacs -Q, there appears to be some sort of default color scheme. Where are these colors defined? The default theme does not show up with M-x customize, nor can I find it in ...
4
votes
1answer
81 views

how to not save duplicate information in Customize?

On a fresh install of emacs, I loaded my personal init files with all my custom lisp code. Then I changed one setting using the Customize interface and saved my changes. But in the custom.el file, ...
3
votes
2answers
3k views

Word wrap line option by default

Recently I discovered emacs as a text editor for my latex documents. So far, I am excited with how powerful the editor is. However, I have a problem with line wrapping. More precisely, in the option ...
3
votes
2answers
214 views

Display all setq possibilities

When I install a new package, more often than not there are variables that I can set - to customise the package. I love customisations, which is why I use Emacs in the first place. For example, I ...
3
votes
3answers
188 views

Running out of L:/ etters: shortcut for path needed

I'm working with files which are stored on a server. The structure on the server is: //SBS/share/path/to/somewhere/2007/ //SBS/share/path/to/somewhere/2008/ //SBS/share/path/to/somewhere/2009/ ... //...
3
votes
1answer
1k views

How to use .dir-locals.el with Projectile?

I'm trying to ignore some file patterns while performing helm-projectile-grep and some with helm-projectile-find-file. I've found that it could be achieved using .dir-locals.el here. Following this ...
3
votes
1answer
93 views

detecting obsolete/deprecated settings in elisp files, particularly .emacs

I recently got bitten by a deprecated setting breaking a new package I was trying to use. The same behaviour had been reported by a number of users before me, but the authors were unable to reproduce ...
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, ...
3
votes
1answer
556 views

Enable any outline mode for markdown

First of all, from http://www.emacswiki.org/emacs/AllOut: Allout outline mode is part of GnuEmacs. Allout outline mode provides extensive outline formatting and manipulation beyond standard ...
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 ...
3
votes
2answers
83 views

Customize a setting?

I'm new to Emacs. How do I customize a setting? This is actually a generic question inspired by the org-mode manual: In this description, it says to (setq org-clock-persist 'history). Where should ...
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 ...
3
votes
1answer
105 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 ...
3
votes
2answers
595 views

How can I disable “q” in normal state in evil for some modes?

I'm using Spacemacs. I noticed that in help-mode, q quits, which is exactly what I want. However, in certain other modes, customize-mode, for example, q is bound to evil-record-macro. (I set it to ...