Questions tagged [customize]
Use this tag for questions about modifying a particular action or task within Emacs.
236
questions
0
votes
3
answers
54
views
Method separators
Does anybody know of a function/package/etc. to draw visual separators between "high-level" blocks of code, like class and function definitions? Similar to the horizontal lines in these ...
0
votes
1
answer
33
views
use-package, way to execute :custom or :config block?
:custom block is not executable format such as
(org-babel-confirm-evaluate nil).
whereas (setq org-babel-confirm-evalulate nil) can be excuted via C-x C-e.
Is there a way to execute a :custom block ...
4
votes
1
answer
118
views
I'm unsure which option to use for setting a variable: setq, customize-set-variable, or setopt
I'm a bit uncertain about which method to use for setting a variable: setq, customize-set-variable, or setopt. I did some research online, and it seems that opinions on this matter are quite varied. ...
0
votes
0
answers
27
views
Highlighting entries with specific keywords in Elfeed
To avoid missing on important news, I am trying to highlight Elfeed entries containing specific words in their titles:
(add-hook 'elfeed-new-entry-hook
(elfeed-make-tagger :entry-title '("...
0
votes
0
answers
37
views
How do I set package-vc-selected-packages to use a specific commit?
Emacs 29.1 introduced new functions to install packages directly from source.
Configuring it to download from the latest commit works fine, but I can't find how to download from a specific commit ...
0
votes
1
answer
44
views
Increase text size permanently
How can I set the text size to be larger all the time, starting from when I open the GUI app? I am specifically referring to the text size for the buffer and modeline.
I am moderately visually ...
0
votes
1
answer
32
views
Changing some attributes of face `mode-line`
I want to change some attributes for the mode-line using elisp file calls. But I want to use exclusively the code that I write myself, without having emacs write to my init file.
Although I have been ...
0
votes
0
answers
32
views
"touch file" in dired mode
I found this answer:
(eval-after-load 'dired
'(progn
(define-key dired-mode-map (kbd "c") 'my-dired-create-file)
(defun create-new-file (file-list)
(defun exsitp-untitled-...
0
votes
0
answers
50
views
How to edit source code from elpa package and keep changes?
So today I installed a dashboard for emacs with M-x package-install RET dashboard. It works perfectly fine. I made some nice customization and it looks great!
But by default, there are some messages (...
0
votes
1
answer
22
views
How can we customize the font size of the window-number in `ace-window` mode?
The font face of the window labels in ace window seem to have the same size as that of the text in the buffer, which is in general too small for me to allow for quick visual parsing.
I was hoping that ...
1
vote
1
answer
28
views
How to hide a face?
I am new to Emacs (28.2) and would like to customize certain packages by simply hiding some of their elements or faces.
For example, I'm trying to remove elfeed-search-last-update-face from elfeed-...
0
votes
0
answers
62
views
In Doomemacs how to get "SPC q l" to automatically run the moment doom loads after I run "emacs .&" from command line
On my linux box when I run emacs .& from the command line, inside a folder it opens up and displays that folders contents via Dired.
I need to either:
display the Doom landing screen instead of ...
0
votes
0
answers
41
views
"Erase customizations" button is not reverting customized face to its standard value
What I am about to say is best reproduced with an empty configuration. So if you want to reproduce this issue just back up your ~/.emacs.d and any other init files to a different folder and try this.
...
1
vote
3
answers
116
views
How to switch off showing a line break marking dollar sign $ at the end of a line?
One of the nice features of Emacs is that you can use Tab for in-line completions and Tab-Tab for showing possible completions to already typed text in a separate buffer if there are multiple of them. ...
2
votes
1
answer
48
views
Lisp Mode Documentation Syntax color change?
I use emacs for common lisp development. I noticed that the documentation string for functions is white and makes it hard for me to read.
Is there a way for me to change the color of this string?
...
2
votes
1
answer
66
views
Defcustom definition for plists
I want to write a defcustom definition for a variable my-var.
my-var is an alist that maps strings to plists. Each such plists maps one of three keys (:x, :y, :z) to a list of strings. So, a member ...
1
vote
0
answers
46
views
Define separate file for org-custom variables
I would like to create more separation between the custom variables generated through the Customize UI that are generated for org-mode, and non-org mode features.
I have already broken out my primary ...
0
votes
1
answer
279
views
How do I configure Emacs to display of line numbers permanenty [duplicate]
https://www.gnu.org/software/emacs/manual/html_node/efaq/Displaying-the-current-line-or-column.html
M-x (global-display-line-numbers-mode)
But after I do C-x C-c then it's not configed.
How do I make ...
1
vote
1
answer
161
views
Setting position of initial frame from user defined values
I would like to set the frame position of the initial frame, by letting the user position the frame where he wants. I can then save the cons cell in a variable which will then be used for set-frame-...
0
votes
1
answer
75
views
How to set up K&R everywhere (1TBS) brace style in cc-mode?
I'd like Emacs to follow this indentation style:
struct Foo {
void bar() {
for (int i=0; i<10; i++) {
if (condition) {
// code
// code
...
4
votes
2
answers
158
views
How to see total line number of a file in emacs Mode line?
I really need this but couldn't figure out how to do it.
Let's say I open a file in a new buffer which has 200 line of code.
Now I'm in the beginning of my file in line 1. And Mode line showing All(1,...
2
votes
1
answer
101
views
How to set crossline alike highlighting mode in emacs?
What i'm trying to do here is that, in my buffer I want to point the cursor position through highlighting the line horizontally and column vertically. Much like the CrosshairHighlighting mode.
(https:...
0
votes
1
answer
38
views
defcustom: store variable value permanently
When I have a custom variable and a function that changes it's value:
(defcustom current-fileset nil "Currently selected fileset" :type 'string)
(defun set-val ()
(setq current-fileset &...
0
votes
1
answer
91
views
pdf-tools: set a number of colors readily available for highlighting
When reading a pdf file, I use different colors for highlighting; for example to distinguish different ideas.
Is it possible to have a number of colors readily available when using pdf-tools. That is ...
1
vote
1
answer
135
views
pdf-tools: customize highlight color
How can I customize pdf-tools' default color for highlighting (from yellow to something else)?
0
votes
1
answer
78
views
How to add spacemacs/evil functions to pulsar-pulse-functions?
I'm using emacs 28.1 with Spacemacs and after installing pulsar I'm wondering how to add the pulse functionality on certain events, such as, when going through search matches, scrolling up, down, etc.
...
1
vote
1
answer
36
views
how to re-enable a variable after a package overwrites it? (in particular, mark-even-if-inactive and Hyperbole)
I have mark-even-if-inactive set to t in my init.el; I've found that I that so (interative "r") works as expected; if that variable is nil, I get "The mark is not active now" when ...
0
votes
1
answer
321
views
what is the type 'repeat string'?
Here it says that the type of lsp-clients-pylsp-library-directories is (repeat string)
How do I write my dir_locals.el file ?
I tried this but it doesn't work (see here)
((lsp-mode . ((lsp-clients-...
0
votes
0
answers
24
views
Can org-provide-todo-statistics be set locally for a specific tree?
Sometimes I would like a tree's statistics cookie, for example "[1/3]", to be calculated differently than what is specified in the global value for org-provide-todo-statistics.
For example, ...
1
vote
2
answers
190
views
Can the menubar and scrollbar be customized?
In GTK versions of Emacs (or more generally any GUI version of Emacs), can the scrollbar and menubar colors be customized? I can probably change the look of ALL my GTK applications, but when running ...
1
vote
1
answer
114
views
show line number when matching parathenses/braces
I work with latex/other documents with long nested of texts/codes are enclosed by paratheses or braces, like this:
{
long blocks of latex or other materials
(
another long blocks of texts
...
0
votes
0
answers
524
views
How do I save org-agenda-files customizations in Doom Emacs?
I am currently running Doom Emacs and using org-mode. When I try to move a file to the front of the agenda file list (C-c [), It is updating the custom.el file, rather than the config.el file.
In my ...
1
vote
1
answer
183
views
Setting new values in `org-refile-target` not working
I'm trying to add a new file foo.org and delete an old bar.org from the org-refile-target variable. So doing
(setq org-refile-targets (quote (("~/foo.org" :maxlevel . 2))
should work by ...
1
vote
1
answer
30
views
defcustom not appearing in Customize UI
I have a problem that variables defined with defcustom in elisp files under ~/.elisp do not appear in the Customize UI.
In particular, I use word-count-mode from https://github.com/tomaszskutnik/word-...
1
vote
0
answers
387
views
Symbol's value as variable is void: tramp-remote-path
I'm trying to configure a remote path when using tramp. I have added (add-to-list 'tramp-remote-path "/root/.cargo/bin") to my init.el
I get the following error:
Symbol's value as variable ...
0
votes
1
answer
139
views
How to replace ascii codes with characters in custom settings or buffer?
I customized org-tag-alist using the built-in customization interface. This stored the values in ("tag") . <ascii key value>) pairs like this:
("ez" . 90)
("pin"...
0
votes
1
answer
472
views
lsp-mode Golang build tags
I am using lsp-mode with Gopls as my coding environment. But I have one file with
// +build tagthis
at beginning of the file. Then my emacs lsp-mode cannot work well in this file. How can I change ...
0
votes
2
answers
315
views
How to use org-tree-to-indirect-buffer and turn off org-indent-mode in the new indirect buffer, with a toggle to go back, all in a single key binding?
I like using org-mode as a distraction free text editor.
I also like using org-indent-mode when navigating my entire file.
I also like using org-tree-to-indirect-buffer to focus on a desired section ...
0
votes
2
answers
74
views
How to properly use defcustom with backquote / comma grammar? (to edit a mode's font-lock-keywords)
I'm trying to edit a mode's font-lock-keywords variable to use defcustom instead of defconst (which it was using previously). Obviously, this is because I want to be able to easily customize the mode'...
0
votes
0
answers
65
views
Why bold faces do not inherit from the `bold` face?
I had tried to use a thin weight font as the default face and a regular weight font as the bold face (try, it's a nice combination), but I desisted because there are a zillion faces that do not ...
3
votes
1
answer
429
views
emacs-custom file get overwritten
In my init.el, I have the following line
(setq custom-file (expand-file-name "custom.el" user-emacs-directory))
which is supposed to set the file custom.el into .emacs.d config folder for ...
2
votes
3
answers
494
views
How to prevent M-x package-install from editing my ~/.emacs file?
When I install packages with M-x package-install, it edits the ~/.emacs file and adds the following content:
(custom-set-variables
;; custom-set-variables was added by Custom.
;; If you edit it by ...
1
vote
1
answer
45
views
Make customize save lists newline separated
When saving changes using customize Emacs serializes lists space separated. This makes for example the package-selected-packages variable extremely long and hard to scan over.
Is it possible to make ...
2
votes
0
answers
136
views
How to find out the name of a variable Customize is customizing
I'd like to have a function that when run from within a Customize buffer will return the name of the variable that would be customized at point.
0
votes
0
answers
35
views
Why won't emacs permanently save my buffer-local var?
For many files I have file-local variables which asked me once if they were safe and I could add them permanently to my "trusted" list, never to be asked again. However, I get asked every ...
0
votes
1
answer
39
views
Why has my .custom file changed between `(quote` syntax and the `'` syntax and how to convert between the two?
I use the same .custom file on different machines syncronised via a git repo.
I just noticed that suddenly the .custom file from one machine uses the (quote syntax while in the past the ' syntax was ...
1
vote
3
answers
851
views
How to set js-mode indent in Emacs >= 27.1
I have my tab width set to two spaces and this has worked fine for many years. I have just upgraded to Emacs 27.1, and now js-mode is displaying tabs as three spaces wide, ignoring my preferred ...
1
vote
0
answers
314
views
init file -- How to customize user options? [closed]
One of the recommanded solution to customize user options in the init file is customize-save-variable. This command saves some code that initializes custom variables, at each startup of the editor.
(...
1
vote
2
answers
119
views
how to extract options I saved with customize and insert it inside use-package lines?
Suppose I did some customization through M-x customize-mode or something similar
'(org-agenda-custom-commands
'(("n" "Agenda and all TODOs"
((agenda "" nil)
...
0
votes
1
answer
169
views
How do I set flycheck-markdown-mdl-rules
I'm trying to get FlyCheck to ignore a rule used by mdl for checking syntax for.md files. I'm not very lisp or emacs savvy, but I've added this code to my personal.el file.
;; Turn off mdl message [...