Questions tagged [customize]
Use this tag for questions about modifying a particular action or task within Emacs.
243 questions
1
vote
1
answer
65
views
Given a symbol defined with a defcustom form, how to programmatically identify its group(s)?
How to identify the parent group(s) of a symbol defined with a defcustom form with elisp code?
For instance I would like to use or write a function custom-group-of such that
(custom-group-of 'delete-...
2
votes
2
answers
134
views
Where does emacs store the options when I choose Options from the menu
I have installed a fresh copy of emacs on a new linux machine.
Instead of creating an init.el file in the ~/.emacs.d folder, I just used the menu and set some options and set a default font. I exited ...
0
votes
1
answer
71
views
Install packages without prog-mode-hooks
I have an existing init.el file but an otherwise "clean" Emacs - the .config/emacs directory is empty.
When I start Emacs I naturally get warning messages about missing packages which are ...
0
votes
0
answers
33
views
Process an org block to insert equivalent html in org html export
I have a made-up markup-like language named weirdlang which I wish to include within org files like this:
#+begin_src weirdlang
H: Hello
L: This is a list
I: Item 1
#+end_src
This corresponds to ...
0
votes
0
answers
74
views
mode-line-format: How to ensure `:eval`'d code is evaluated when necessary?
I'm trying to show full b/B bytes, l/L lines, c/C columns in the mode line (where n/N denotes "point is at n of N total), all zero-based, with both sides of each fraction padded as needed to keep ...
1
vote
1
answer
107
views
AUCTeX: Add "\Clause[optionlist]" to section commands, if package contract is loaded
There is a new LaTeX package: "contract". Inside a contract environment there are two new sectioning commands:
\Clause[optionlist]
\SubClause[optionlist]
The section command of Clause is on ...
0
votes
0
answers
31
views
How to share custom-set-variables settings with colleagues?
In my .emacs file, I have some settings that I need to share with my colleagues to ensure that other tools I've shared in a Git repository work correctly. I was thinking of moving these settings to a ...
1
vote
1
answer
998
views
How do I customize the icons used in nerd-icons package
I'm new to emacs and installed the nerd-icons.el package along with the package
nerd-icons dired. The problem is I don't like the icons set as default.
Even though i've read the nerd-icons GitHub page,...
3
votes
1
answer
207
views
Lowering org-pomodoro sound volume
The default "bell.wav" sound file included in the org-pomodoro package that plays when an interval is concluded is much louder than other sounds on my computer. I'm trying to figure out how ...
1
vote
1
answer
60
views
Why does customize buffer display "[ State ]: UNKNOWN, you should not see this"?
In a package of my own, namely skel-el, I define a user option skel-el-line1 (well, ok, I'm the only one user) which can be a string, a variable (containing some string) or a function (whithout ...
0
votes
3
answers
138
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 ...
11
votes
1
answer
4k
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. ...
3
votes
2
answers
470
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
784
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
776
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
226
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
187
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
186
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
116
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
202
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
72
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
563
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
135
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?
...
3
votes
1
answer
184
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
76
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
768
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
563
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-...
1
vote
1
answer
230
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
988
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
315
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
64
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 &...
1
vote
1
answer
271
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 ...
2
votes
1
answer
379
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
164
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
59
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
654
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
40
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
477
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
179
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
...
1
vote
0
answers
889
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
350
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
73
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
737
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
310
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
844
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
687
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
112
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
112
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
905
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
771
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 ...