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 ...
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)
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 ...
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 ...
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 ...
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)))
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-...
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)...
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 ...
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 ...
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).
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 ...
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:
...
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.")
(...
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 (...
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 ...
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 ...
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 ...
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....
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 ...
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 ...
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 ...
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 ...
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 ...
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 ...
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
...
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 ...
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 ...
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 ...
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-...
Only top scored, non community-wiki answers of a minimum length are eligible
Related Tags
customize × 240init-file × 34
org-mode × 25
faces × 23
defcustom × 17
themes × 12
customization × 11
variables × 10
buffers × 7
fonts × 7
colors × 7
minor-mode × 7
dired × 6
package × 6
spacemacs × 5
latex × 5
window × 5
frames × 5
start-up × 5
custom × 5
evil × 4
font-lock × 4
functions × 4
setq × 4
customize-face × 4