Questions tagged [custom]

Use for questions about the built-in GUI customization features

Filter by
Sorted by
Tagged with
0 votes
0 answers
23 views

How to very slightly edit the welcome splash to have a list of files to open in new tabs? [duplicate]

New to emacs, and I want to keep the welcome splash, but with links to a few files to open in a new tab when I click on them. These would include a file for notes I'm making when going through emacs ...
noobidy-doobidy's user avatar
0 votes
1 answer
51 views

Emacs 'package-selected-packages' is not get saved in a customization file

I have noticed recently, the Emacs always shows a list of "unneeded" packages, which could be "auto-removed". The packages it suggests as not needed are those that were installed ...
dilettant's user avatar
  • 135
0 votes
1 answer
726 views

`defface` and `custom-set-faces`

Noob here. In my .emacs.d/custom.el I have stuff like: (defface delim-mismatch `((t (:foreground "red")))) (custom-set-faces '(show-paren-mismatch delim-mismatch) ... ) But it throws ...
jessexknight's user avatar
0 votes
0 answers
22 views

custom-set-faces common color variables [duplicate]

I want to fine-tune my syntax highlighting, and have created a separate colors.el file that gets loaded around the beginning of init.el. I often use the same color for multiple entries, and it gets ...
Andrii Kozytskyi's user avatar
0 votes
1 answer
396 views

How to custom-set-faces with one of the named faces?

I can do this: (custom-set-faces '(j-verb-face ((t (:foreground "Red"))))) But what I want is to set the color to one that is theme-dependent. I tried the following, which causes a "...
Alex Shroyer's user avatar
1 vote
1 answer
107 views

How to check if a customize group exists in Emacs Lisp code?

How can I programmatically check if a customize group exists? Interactively I can use M-x customize-group and use completion to see if a specific group exists or not. But that's not what I need. If I ...
PRouleau's user avatar
  • 796
1 vote
1 answer
29 views

Replace a filename in init.el using sed from bash script

So I have different customized themes. Different customized themes are written to a separate custom .el files and get called in the main init.el file. For example: (setq custom-file "~/.emacs.d/...
mle0312's user avatar
  • 295
3 votes
2 answers
81 views

A custom type specification like “repeat,” but when there’s only one item, it’s inline

So, I’m trying to add Customize support to packages that use a lot of plists, and where the value of pretty much any option can be either a single item or a list. I could have every single plist ...
Tina Russell's user avatar
1 vote
0 answers
51 views

Massively long text boxes and yasnippet highlighting

Why are my text boxes and yasnippet field highlights so massively long? Is there a way to change this behavior? If so, what are the necessary steps that need to be taken to solve this issue? The ...
John DeBord's user avatar
1 vote
1 answer
95 views

macro takes multiple pairs of arguments

I found this snippet of code from oremacs (defmacro csetq (variable value) `(funcall (or (get ',variable 'custom-set) 'set-default) ',variable ,value)) I would like to expand this macro so that is ...
Prgrm.celeritas's user avatar
1 vote
1 answer
381 views

What happens when there is more than one custom-set-variables?

a quote from my init.el: ;; custom-set-variables was added by Custom. ... ;; Your init file should contain only one such instance. ;; If there is more than one, they won't work right. What exactly ...
Markus Grunwald's user avatar
1 vote
1 answer
94 views

Save filesets-data in file which is not the custom-file or other emacs config file

Background I store Emacs my configuration in a .emacs and separate custom file. I would like to store both in a public repository like Github. I also use filesets which saves filenames & file ...
Mikef's user avatar
  • 175
7 votes
1 answer
1k views

Add to a list that defcustom has not yet defined

We can avoid adding duplicate elements to a list variable by using add-to-list. When setting a customizable variable (i.e. one that is or will be defined by defcustom) from our init file, we're ...
ivan's user avatar
  • 1,948
1 vote
1 answer
507 views

Where is the information passed to `custom-set-variables` and `custom-set-faces` stored?

The post's title pretty much says it all. In particular, I want to find out what happens if I invoke custom-set-variables twice, with completely different arguments each time. E.g. (custom-set-...
kjo's user avatar
  • 3,247
0 votes
1 answer
343 views

Show name of variable in Custom-mode

I sometimes explore customisable variables in Custom-mode to get a structured overview, before manually setting them with setq-default in my .emacs. Can I make Custom-mode show the Lisp names of the ...
Sam Brightman's user avatar
1 vote
2 answers
261 views

How to make a Customize setting depend on another? or make a `setq` depend over a Customize setting?

I heard it’s better to use Customize to define variables/settings instead of just some setq inside .emacs.d… because it autoloads when loading packages, because it’s more consistent, more checked/...
galex-713's user avatar
  • 245
3 votes
1 answer
2k views

how to use custom-set-variables safely?

The help for custom-set-variables says: The arguments should each be a list of the form: (SYMBOL EXP [NOW [REQUEST [COMMENT]]]) This stores EXP (without evaluating it) as the saved value for ...
Adam Spiers's user avatar
2 votes
1 answer
4k views

What is causing this error: "Cannot open load file, no such file or directory, session"?

From time to time my Emacs doesn't load my init file at startup and gives me the following error message: File error: Cannot open load file, no such file or directory, session To ensure normal ...
clemera's user avatar
  • 3,471
1 vote
1 answer
317 views

How to programmatically extract configurations from a defcustom variable?

How do I programmatically extract key-value pairs from "Babel Languages" list in defcustom org-babel-load-languages section of org.el? I want to read the "Babel Languages" configuration into an org-...
Melioratus's user avatar
  • 4,644
7 votes
2 answers
1k views

Stop org-mode from defining agenda files in custom

I have the following line in my .emacs: (setq org-agenda-files (directory-files "~/org-files" 'absolute "[^#]*.org$" 'no-sort)) I would like for org-agenda-files to be defined in this way on startup....
Matthew Piziak's user avatar
1 vote
1 answer
160 views

Automatically prompt for comment character and apply it in older versions of emacs

When I try to comment a block of code using comment-region in a file type emacs doesn't know the proper comment type for, then it prompts me No comment syntax is defined. Use: so I can specify the ...
Joey O's user avatar
  • 135
7 votes
1 answer
2k 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 ...
Jackson Ray Hamilton's user avatar
31 votes
3 answers
5k views

Reset custom variable to default value programmatically

Q: Using Elisp, how can I reset a variable to its default value without knowing what that value is? I tried to figure out how to do this by bringing up the Customize interface for a variable I set to ...
itsjeyd's user avatar
  • 14.7k
90 votes
5 answers
21k views

Advantages of setting variables with setq instead of custom.el?

I see a lot of people (extension authors and others) give configuration examples with setq: (setq foo 'bar) These parameters are often defined with defcustom, making them available for customization ...
J David Smith's user avatar