Skip to main content
16 votes

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

Since you want "To better distinguish between focused window", you can use other ways to do that instead of just changing the active window's fringe color. I combine three ways to better distinguish ...
CodyChan's user avatar
  • 2,669
12 votes

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

Example of exact text you may want to place in your init.el: (setq custom-file (concat user-emacs-directory "custom.el")) (load custom-file 'noerror)
ideasman42's user avatar
  • 9,157
10 votes

Set column widths in `ibuffer`

If what you care about is seeing the entire buffer-name column, specifically, you can do it without "customising" anything, by using ibuffer-switch-format, bound to ` within ibuffer. The function ...
aplaice's user avatar
  • 2,216
9 votes
Accepted

Customize ??? in which-func-mode

??? is displayed if which-func-mode (or which-function-mode in Emacs 25) can't determine the name of the current function. To customize it, modify the variable which-func-unknown, which is the "String ...
Wieland's user avatar
  • 565
9 votes
Accepted

Is it possible to organize the capture templates selection screen?

There are a couple of options for this, to me the easiest way is grouping templates using the built-in mechanism. My way to use capture templates is based in memory muscle rather than digging a long ...
Muihlinn's user avatar
  • 2,684
7 votes

Is it possible to change the font size in specific buffers?

Yes, you can use a hook: (add-hook 'term-mode-hook (lambda () (text-scale-decrease 1)))
djangoliv's user avatar
  • 3,294
7 votes

Detecting variable changed outside customize

Emacs version 26.1 and higher allows you to trigger the debugger when a variable changes. Place the following code near the beginning of your init.el: (debug-on-variable-change 'semantic-lex-c-...
Programator2's user avatar
7 votes
Accepted

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

(substitute-in-file-name "~/.emacs.d/${USER}_${HOST}_custom.el") Should give you what you want. substitute-in-file-name is a built-in function in C source code. (substitute-in-file-name FILENAME)...
wvxvw's user avatar
  • 11.5k
7 votes
Accepted

How to know which packages have been installed?

Packages installed with package-install are stored under .emacs.d/elpa/ directory. You can remove a package by deleting its directory e.g. evil-20170802.1333 ;) Check out use-package package. It ...
mmajcher's user avatar
6 votes
Accepted

No colors for eshell?

Eshell is an independent command interpreter implemented in Elisp, so by default it should have nothing to do with your other dotfiles, such as ~/.bashrc. The custom prompt function you list works ...
Basil's user avatar
  • 12.6k
6 votes

How to know which packages have been installed?

M-x package-list-packages At the end of the list are installed packages (printed in red).
Pierre ALBARÈDE's user avatar
6 votes
Accepted

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

The LaTeX command \maketitle simply formats the various title page elements (author, title, etc.) according to the current document style. When you wrote “However, the latex wiki formats the ...
Sue D. Nymme's user avatar
  • 1,476
5 votes

Separating Customize settings from other Init-file settings

Set variable custom-file. If defined, that is the file the Customize uses, to save and update your custom settings, instead of using your init file (e.g. ~/.emacs). Just add this to your init file: ...
Drew's user avatar
  • 79.1k
5 votes
Accepted

How to make size of Emacs frame persistent?

Just as @Drew states. I use this: (defconst frame-default-top 0 "The 'top' position property of a frame.") (defconst frame-default-left 0 "The 'left' position property of a frame.") (...
eflanigan00's user avatar
5 votes
Accepted

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

You should take the whole text of your first code snippet and stuff it into the custom.el file as it is. After you have done this, put your second code snippet in place of the previously copied stuff (...
jue's user avatar
  • 4,686
5 votes
Accepted

How to customize emacs toolbar?

I have created an image corresponding to the pepper.xpm in the below example. In emacs25.3 use 22x22 pixel image. I just copied one of the xpm image files in the /usr/share/emacs/25.3/etc/images (in ...
manandearth's user avatar
  • 2,138
5 votes

Customize eshell redirection to buffer

To redirect to a buffer, use #<buffer buffer-name>, since Emacs 24.4, you can also use the shorthand #<buffer-name>. For example, echo hello >>> #<buffer *scratch*> echo ...
xuchunyang's user avatar
  • 14.8k
5 votes
Accepted

Separate customizations according to modes

It seems to be possible with an extra package. Initsplit Initsplit (initially written by John Wiegley — one of the co-maintainers of Emacs) was designed for exactly this purpose. Unfortunately, it ...
aplaice's user avatar
  • 2,216
5 votes
Accepted

Change color of org-mode checkboxes

@Drew was right: in some other part of my init.el, I had overwritten org-todo with custom-set-faces: (custom-set-faces '(org-todo ((t (:overline t))))) This seems to reset the :foreground property....
Timm's user avatar
  • 1,619
5 votes
Accepted

tramp-default-method has no effect

With Tramp 2.3 / Emacs 26.1, Tramp's syntax has changed. It requires now the method name mandatory. If you want the shorter version of Tramp file names (without the method), you must change the syntax ...
Michael Albinus's user avatar
4 votes
Accepted

Disable tabbar in special buffers

(add-hook 'help-mode-hook 'tabbar-local-mode) tabbar-local-mode: Toggle local display of the tab bar. With prefix argument ARG, turn on if positive, otherwise off. Returns non-nil if the new state ...
lawlist's user avatar
  • 19.5k
4 votes

describe-face character not under / unreachable by the cursor

Turns out you can indeed use the mouse (I think this may be exactly what you were looking for): ;; based on: https://emacs.stackexchange.com/a/19585/13444 (defun brds/describe-char-at-mouse-click ...
Braham Snyder's user avatar
4 votes
Accepted

Emacsclient not loading init file changes

emacs loads your init file. This is one of the potentially time-consuming parts of starting Emacs. emacsclient just connects to a running Emacs server. It doesn't load your init file, because it's ...
phils's user avatar
  • 53k
4 votes
Accepted

emacs-custom file get overwritten

You used M-x customize-variable, edited the option value, and then saved it. When you save your changes they're written to your custom-file (or your init file, if you have no custom-file defined). So ...
Drew's user avatar
  • 79.1k
4 votes

How to see total line number of a file in emacs Mode line?

You control the mode line using the variable mode-line-format. Typically, it is a list of entries that Emacs walk through recursively to decide what the mode line contains. For example, the following ...
Lindydancer's user avatar
  • 6,250
4 votes
Accepted

Defcustom definition for plists

I think this is what you're describing: (defcustom myvar () "..." :group 'mygroup :type '(alist :key-type string :value-type (plist :key-type symbol ...
Drew's user avatar
  • 79.1k
3 votes

Shifting Emacs Theme from one Computer to Another

First, you are mixing up 2 different color theme types. color-theme is a separate package that predates emacs 24's built-in theme support (so your middle attempt to customize-theme will never do what ...
InHarmsWay's user avatar
  • 1,339
3 votes
Accepted

Auto generated code in the init file when updating packages

Set option custom-file (to a different file from your init file). Then Customize will use your custom-file instead of your init file. This is good practice. It keeps your manually edited code apart ...
Drew's user avatar
  • 79.1k
3 votes

How do I determine where a variable is set?

Don't know much about Prelude, but if the variable has value 4 after running just % emacs [...] C-h v web-mode-markup-indent-offset RET then it's presumably somewhere in "your" configuration. If ...
Stefan's user avatar
  • 26.7k
3 votes

How to get Emacs to automatically open a specific directory on startup?

Oops, never mind, I read the link I provided earlier again and I finally got how to turn it into an ~/.emacs modification. Specifically I added: (setq initial-buffer-choice "~/Documents/CodeLite/CPP-...
Josh Pinto's user avatar

Only top scored, non community-wiki answers of a minimum length are eligible