Questions tagged [customize]

Use this tag for questions about modifying a particular action or task within Emacs.

Filter by
Sorted by
Tagged with
0
votes
0answers
14 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
1answer
25 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 ...
0
votes
0answers
24 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
0answers
91 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
2answers
39 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
1answer
21 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 [...
0
votes
1answer
43 views

Getting Helm describe-function/describe-variable’s secondary to work like helm-M-x?

When you use Helm for M-x, you can quickly check the documentation for an interactive command before calling it, it using the secondary key (usually C-z or C-j; I use the latter below). It brings up a ...
1
vote
1answer
91 views

Emacsclient not loading init file changes

Context: I just updated Emacs via homebrew; I don't remember the steps I followed to get Emacs to run via daemon originally, but since the update it doesn't seem to be using it anymore (i.e. quitting ...
1
vote
1answer
26 views

How can I get the tag value associated with a current custom variable?

I've got a custom variable defined: (defcustom monorail-search-mode :issues-open "Current search mode for queries (controls whether we're searching all issues, open issues, new issues, etc)&...
0
votes
1answer
52 views

How to properly specify defcustom default list of heterogeneous types?

How to properly write the default value for a non-trivial defcustom form for something like I have below: a list of 3-element lists, with choices of the types? The defcustom form is: defcustom ...
2
votes
1answer
60 views

quote vs ' in customization file

I sync my config between several different machines using git. Setting options via the customize-variable interface, some of my computers use quote, while others use '. As a consequence, my git ...
1
vote
1answer
21 views

How to change a variable value in the current buffer?

I spent a long time looking for this and kept getting reference to M-x customize. But, that didn't give me access to certain variables like comment-start. I couldn't access comment-start with M-x ...
3
votes
1answer
86 views

Is it possible to organize the capture templates selection screen?

As it can be seen above, I have around fifteen capture templates. I think this list may grow or shrink, but in the case that it grows, is there any way to make it more segmented? Like dividing it ...
2
votes
0answers
67 views

How do you set the line height when customizing a font face? (e.g. an org-drawer)

I specifically want my :NOTES: org drawer (and :end:) to be a smaller font size (say 0.5 relative to normal text). Ideally the drawer contents also (say 0.8). However, when I set the height property ...
0
votes
1answer
25 views

Create shortcut for interactive compile command

I know that we can start compile interactively using C-u M-x compile. Is there a way to start this whenever I run M-x compile? If that cannot be done, how do I create a shortcut to C-u M-x compile? ...
0
votes
1answer
37 views

How to use unicode for the checkbox in customize buffers (**not** in org mode)?

I'm trying to modify the appearance of customize buffers. I managed to modify the button but I did not find how to change the appearance of the checkbox nor the dropdown indicator (▽). Ideally I would ...
0
votes
0answers
30 views

how to save my toolbar items for future sessions?

I performed several google searches on the internet to find a solution for tool-bar item. I tried this code without resulting. Nothing happens. I also tried with Emacs default interface (the same of ...
2
votes
0answers
44 views

org-table: hide grid lines

I like how org-mode allows me to quickly create and edit tables. However, I do not like the table's appearance and I would like to modify it. Customizing the face only lets me change foreground and ...
0
votes
0answers
50 views

Change color of highlghted annotated text in pdf-view

I use pdf-tools to read pdf in emacs. You can highlight a text in the pdf and do C-c C-a h to highlight the text. In normal light mode, the text will be yellow and you can customize it via M-x ...
0
votes
0answers
21 views

Custom org-refile of a table entry similar to Capture

My question concerns the refiling of table entry. I keep my cheatsheets for different kind of things in a table format. Let's suppose, that each heading has exactly one table. * My table 1 ...
0
votes
1answer
51 views

How do I set evil mode to use the normal state by default in Customize mode?

When I open the Easy Customization in Emacs, I want to be in normal mode instead of emacs mode. Is that possible?
2
votes
2answers
55 views

Enabling minor modes via customize

I see that minor modes defined via define-minor-mode have a variable that has the same name as the function and the following documentation: Setting this variable directly does not take effect; ...
0
votes
2answers
136 views

How to run a function when setting a 'defcustom' option?

Is it possible to run code when setting an option defined by defcustom? For example, I would like (setq my-package-option t) to install a hook. While defcustom has a :set keyword, it's documented ...
4
votes
1answer
698 views

init.el and trampling of custom-set-variables

My new init.el uses require to load various settings that I have organised into directories and files. This is an attempt to tame what was a very large and messy init.el and custom.el file. Also I ...
0
votes
0answers
14 views

Inverse Video Text Menu Bar with Prelude Emacs?

I am trying out Emacs Prelude for the first time and so far like it. It succeeds in "modernizing" Emacs without altering it's behavior drastically for established users of Emacs and Emacs keybindings. ...
0
votes
0answers
14 views

Indent multi-line text in customize interface?

The customize interface allows setting comments for variables, which is a great boon for documenting just why I have changed some value. However, a big problem for me is the lack of a proper multiline ...
2
votes
1answer
174 views

Auctex previews, change foreground color of text

I am using a dark theme and the latex previews from auctex are created with black text color. How can I change it? What I can do is change the background color to white (in Preview Reference Face ...
0
votes
1answer
118 views

how to bind custom commands to keys in existing mode map?

I wrote some extra commands for Python mode: python-insert-quote and python-insert-double-quote. I want to have these commands be available in the minibuffer when python-mode is active. How can I add ...
0
votes
1answer
44 views

I can turn on minor modes like electric pair modes in my init, but they’re not having effect unless manually reactivated [duplicate]

So I can put a line like, (setq-default global-linum-mode t) or (setq-default electric-par-mode t) in my init file, and I can check with C-h v that the variables are in fact set to t (they are), but ...
0
votes
1answer
60 views

Should I be worried about the inability to undo a Custom Theme?

I am relatively new to emacs and am liking it... so much so that I'd like to customize the look and feel. I'm aware the Custom Theme is the new way and is different from Color Theme. The one thing ...
1
vote
1answer
40 views

Unrecognisable code set by Customize

I was looking through my .emacs.el file and saw that Customize has put the following in it: '(org-mode-hook (quote (#[0 "\300\301\302\303\304$\207" [add-hook change-major-mode-hook org-...
0
votes
1answer
187 views

How to make markdown-live-priview-mode use pandoc?

I'm having a problem where in markdown-live-preview-mode tables are not correctly converted to HTML from markdown. I'm using markdown-mode. I've tried using pandoc to create the HTML and pandoc ...
1
vote
1answer
40 views

How can I make emacs respect “completion-ignored-extensions” when I hit TAB in the “Find File” buffer?

When I hit C-x C-f to open the "Find file" thing, I can hit TAB to open up a buffer called *Completions* that lists the possible filenames with the given prefix. Sometimes I have a bunch of backup ...
0
votes
1answer
27 views

How to set value vc-git-grep-template within function

I have a working sexp for configuration vc-git-grep: (setq vc-git-grep-template "git --no-pager grep -n -i -e <R> -- <F>") Then in dired-mode I evaluate M-x vc-git-grep and everething ...
2
votes
0answers
306 views

Adding Purpose to Layout Of Emacs

The rigidity to which emacs adheres to its layout is annoying at times. How can i get a layout like this when I shift to the particular modes? +------------------+-----------+ | | ...
0
votes
0answers
31 views

Can a theme set faces normally provided by another package?

I want to produce a custom theme. I understand how to set built-in faces, like font-lock-nnn ones, modeline, etc. I wonder if I can provide colors for faces that are defined by other packages, e.g. ...
1
vote
0answers
65 views

How to implement a nice read-only buffer with accordions and buttons/hyperlinks?

We would like to devise an Emacs front-end that queries a back-end (generating a list of items in JSON format or so, each with a title, long description, and an URL), and displays this list in a ...
1
vote
0answers
37 views

Storing and Loading Non-Static/Multiple Configs

I'm writing an emacs wrapper to a set of scripts that require a lot of config settings to run. These can be variously environment variables, command line parameters and so forth. They should be user ...
3
votes
1answer
625 views

tramp-default-method has no effect

I have a config file to setup defaults for tramp. For the purposes of this example foo and bar are hosts defined in /etc/hosts. (require 'tramp) (setq tramp-default-method "ssh") (add-to-list 'tramp-...
0
votes
1answer
67 views

How to set up personal information alist with defcustom

I would like to have a variable, say my-info that would have an alist attached to it. In normal programming it would look like this: (setq my-info '((my-name . "Giuseppe Sextus-Packus") (my-email . "...
1
vote
2answers
984 views

LaTeX mode: How to select “pdflatex” instead of “latex” for a file automatically?

I have a LaTeX file using lots of PDF figures (mostly because converting figures to EPS is a waste of disk space), so it requires to use pdflatex. I added there lines to the end of my main file: %% ...
0
votes
1answer
59 views

Saving searches in Customize Group in Emacs

If I type M-x customize in Emacs I am taken to customize-group for the Emacs group. At the top of the screen is a search entry dialogue box where I would normally search for a given string. Is there a ...
2
votes
1answer
95 views

“void-variable” error when adding advice to `kill-ring-save`

I am trying to add an advice to kill-ring-save and kill-region, so that when I call them with no active regions, instead of throwing an error, the line the point is currently on would be marked ...
1
vote
1answer
270 views

Should I use “require” or “load” when writing my own configuration? [duplicate]

I am following this tutorial, and the author is doing something like this: ~/.emacs.d/init.el ;; add your modules path (add-to-list 'load-path "~/.emacs.d/custom/") ;; load your modules (require '...
0
votes
1answer
171 views

How to use customize to turn on viper mode by default?

I see on the Viper page that the way to turn on viper mode by default is (setq viper-mode t) (require 'viper) I've been trying to move over to using customize to do emacs configuration. Is there a ...
1
vote
0answers
79 views

Docking a matplotlib window-manager window to an Emacs window

Short version: I want a way to "dock" a matplotlib window-manager window into an Emacs window (similar to the image below), while still keeping the functionality (e.g. zooming) offered by matplotlib. ...
1
vote
1answer
27 views

How best to define nullable integer customizable variables?

I would like to define a variable using defcustom so that it can be customized by users of an emacs package. The variable is an integer (let's call it spam-override), and its function is to override ...
0
votes
1answer
1k views

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

I would like to know how to go about editing and understanding org-latex-title-command. So far it is set to \maketitle but the documentation just has this: The command used to insert the title ...
0
votes
1answer
74 views

How to add font styles to org-capture templates?

I want to change the color and font style in my template. I use custom-set-variable and cannot set, for example, italic style (custom-set-variables '(org-capture-templates (backquote (("d" ...
3
votes
0answers
62 views

How to define a “composite type” with the “group” constructor?

I am trying to define a composite type using the "group" compositor (see Elisp Manual, section "Composite Types"). Previously, I managed to define a composite type with the "list" constructor. The ...