Stack Exchange Network

Stack Exchange network consists of 175 Q&A communities including Stack Overflow, the largest, most trusted online community for developers to learn, share their knowledge, and build their careers.

Visit Stack Exchange

Questions tagged [customize]

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

1
vote
1answer
33 views

Wrong file path when saving through “customize” interface

I've just started using emacs recently and it's fist time i try to configure it. I have following setup under Windows 7: "...\emacs\config\.emacs" "...\emacs\emacs-bin-w64-25.0.94-O2\..." "...\...
3
votes
1answer
1k views

How to use .dir-locals.el with Projectile?

I'm trying to ignore some file patterns while performing helm-projectile-grep and some with helm-projectile-find-file. I've found that it could be achieved using .dir-locals.el here. Following this ...
17
votes
2answers
2k views

How can I get undo behavior in Evil similar to Vim's?

The default undo behavior in Evil is too coarse-grained because it considers anything taking place between entering insert mode and leaving it as one edit operation. When you enter a whole paragraph ...
3
votes
1answer
179 views

emacsclient directly start eshell command command line

Both of the following work to call a graphical/terminal eshell: emacs -f eshell emacs -nw -f eshell Furthermore, this 2-step process also works: `emacsclient -t -a '' /some/real/file/name Metax ...
1
vote
0answers
602 views

Why do “gnu” and “linux” `c-default-style` treat `c-basic-offset` differently?

These lines in my .emacs (setq-default indent-tabs-mode nil) (setq-default c-default-style "linux") (setq-default c-basic-offset 4) result in the following formatting of my c code (the c-basic-...
0
votes
2answers
744 views

whitespace-mode doesn't show the space characters

I need to see the space characters but I can't set it for the life of me. I went to customize the Whitespace Display Mapping and this is what I found. Notice that the mapping for the space is set to ...
0
votes
0answers
95 views

How to change ranger current line face?

I can not figure out how to change current line bg in ranger - I'm unable to find customize group for that, is that possible at all? Maybe its inherited from other dired face, can somebody point me ...
2
votes
1answer
1k views

How to customise Org-mode per file (and sync with Orgzly)

I am using Org-mode in conjunction with an Android tablet. I have customized Org-mode and keep files in Dropbox. After sync the Android side is not implementing any customization. Copied this code ...
2
votes
2answers
83 views

Customize a setting?

I'm new to Emacs. How do I customize a setting? This is actually a generic question inspired by the org-mode manual: In this description, it says to (setq org-clock-persist 'history). Where should ...
2
votes
2answers
89 views

When Emacs loads variable customization?

I have a minor mode that declare a customizable variable as its keymap prefix: (defcustom mymode-keymap-prefix "C-c *" "Prefix for `mymode-mode'." :group 'mymode) (defvar mymode-mode-map (let (...
3
votes
1answer
111 views

What happens if variable changed through customize is later changed by package maintainers?

For example, lets say a package defines a variable foo: (A B C), but through customize, I remove C from the list. Now the variable foo is (A B). What happens if later, the package maintainers change ...
2
votes
2answers
97 views

On monkey-patching a third-party function

The following snippet, featuring the "fantasy function" clone-function, illustrates what I'd like to do: (defvar last-enabled-foo nil) ;; hold on to a "clone"/copy of third-party function enable-foo ...
2
votes
1answer
105 views

detecting obsolete/deprecated settings in elisp files, particularly .emacs

I recently got bitten by a deprecated setting breaking a new package I was trying to use. The same behaviour had been reported by a number of users before me, but the authors were unable to reproduce ...
5
votes
1answer
155 views

Can you describe a face color in terms of an inherited face color?

Specifically, I want tags in org mode to be a variant of the color of the corresponding heading (e.g. less saturated or lighter). Each org mode heading level is a different color, so I can't just ...
6
votes
3answers
294 views

Avoid following link when using org-return-follows-link and point is at end of line

The option org-return-follows-link is wonderfully convenient except when the point is at the end of the line where the intention is usually to insert a carriage return. What's the best way to change ...
3
votes
1answer
406 views

how to define color for part of a comment?

How to make colored some part of comment? Let comment be ;; This is James Bond diary. And I want to make "James Bond" in green. There will be only a few such strings and no places where it will be ...
0
votes
3answers
146 views

emacs philosophy: add dwim behavior when pressing Enter

I recently added a modification to my Enter keybinding based on an answer (if you can't see it, this is a link) on this SE. It was good and I liked it. So of course... Now I want to add MORE dwim ...
0
votes
1answer
193 views

How to set the dimensions of additional frames in Emacs / Aquamacs (OS X)

I'm using Aquamacs on OS X and have multiple monitors in my setup. I'd like for all my Aquamacs frames to open with a certain position and size. In fact, my problem is rather similar to this one on ...
1
vote
1answer
161 views

Windows issue with default .emacs file

I'm brand spanking new to taming the beast that is emacs. I'm using the built in "customize" feature (it has checkboxes and the like). However, when I save the changes, it does not prompt me where to ...
2
votes
0answers
63 views

Dired: manual files sorting for specific directories

I have a directory with many folder. When I open it in dired I see this: bundles ckeditor companies contries failitators induction jquery_update lwt_shared members messages offices ... I often work ...
3
votes
2answers
3k views

Word wrap line option by default

Recently I discovered emacs as a text editor for my latex documents. So far, I am excited with how powerful the editor is. However, I have a problem with line wrapping. More precisely, in the option ...
3
votes
2answers
638 views

How can I disable “q” in normal state in evil for some modes?

I'm using Spacemacs. I noticed that in help-mode, q quits, which is exactly what I want. However, in certain other modes, customize-mode, for example, q is bound to evil-record-macro. (I set it to ...
3
votes
1answer
114 views

How do I set a variable in all programming modes?

I'd like tab-width to be set to 2 in all programming modes. I use prelude (which might be one of the problems), but I have this in my custom.el (which is sort of the analogue to .emacs): (setq my-...
0
votes
2answers
145 views

Emacs and plugins [closed]

I am a vim user for about 2 years and a feel a little out of place here. :) I've also used emacs and very much fond of it, but I am comfortable with vim and getting to the same level in emacs will be ...
3
votes
1answer
845 views

org-mode latex and pdf export custom title

I'm using the latest org-plus-contrib package from the org ELPA archive under emacs 24.5 (Linux and OSX). I needed to have a custom title which includes a logo PNG in documents I export from org to ...
3
votes
2answers
240 views

Display all setq possibilities

When I install a new package, more often than not there are variables that I can set - to customise the package. I love customisations, which is why I use Emacs in the first place. For example, I ...
1
vote
1answer
58 views

How to sync customize interface with external config file?

I would like to have an interface in customize for a package I'm writing. Whenever I set the values it should update an external config file, too. So the values should be saved in the emacs custom ...
2
votes
1answer
137 views

How to make the init file compatible with X and console at the same time?

I have customized the .emacs file a little to suit my taste, and it works fine when run in its own window. But when I try to run it in my terminal using the command emacs -nw, it throws up the ...
1
vote
1answer
743 views

How can I insert a link from one org file into another?

This is probably simple and I've been trying to develop some lisp skills but I'm completely stumped. What I'm trying to do is insert a link in one file every time a TODO state change occurs (probably ...
4
votes
1answer
84 views

how to not save duplicate information in Customize?

On a fresh install of emacs, I loaded my personal init files with all my custom lisp code. Then I changed one setting using the Customize interface and saved my changes. But in the custom.el file, ...
1
vote
2answers
700 views

How to enable ido-completing-read correctly

So there is ido-completing-read that seems perfect to assign to completing-read-function. There is no customization interface though. How is the user supposed to enable ido-completing-read for all ...
6
votes
1answer
1k views

How do you change the text cursor height and thickness?

I would like to change the shape of the cursor to something like the following image: It's a bit taller and thicker than the default one. How do I do that?
3
votes
1answer
1k views

How can I override initial-buffer-choice if I specify a filename at command line?

In my .emacs file I have the following line in custom-set-variables: '(initial-buffer-choice "~/Programming/C++/<some project I'm working on>") This works great. However, I use emacs to edit ...
0
votes
0answers
71 views

Variable-pitch font has stopped rendering correctly

For some reason, variable-pitch fonts have stopped rendering correctly. They previously worked fine, but something seems to have changed (though nothing in my .emacs has changed). I am using OS X 10....
5
votes
1answer
1k views

Create a file link in org-mode that accepts spaces in the text

My org file looks something like this: * Space Radiation ** Gamma Ray Info - file://Library\March 2015\Gamma Ray Radiation Fundamentals.pdf - some notes However the title has spaces so the ...
5
votes
1answer
1k 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 ...
0
votes
1answer
36 views

What is the “customize” feature associated with defcustom and used in projectile.el?

Asking this question because it's really hard to Google "emacs customize" and get to the feature. From the defcustom documentation: You can specify variables using defcustom so that you and others ...
4
votes
1answer
635 views

Detecting variable changed outside customize

I have used "Customize" to set a value for semantic-lex-c-preprocessor-symbol-file. However, after loading up .emacs, this isn't the value I see. On opening up the "Customize" menu for this variable, ...
3
votes
3answers
191 views

Running out of L:/ etters: shortcut for path needed

I'm working with files which are stored on a server. The structure on the server is: //SBS/share/path/to/somewhere/2007/ //SBS/share/path/to/somewhere/2008/ //SBS/share/path/to/somewhere/2009/ ... //...
1
vote
2answers
143 views

how to disable vertical auto-centering of cursor [duplicate]

I recently had my Ubuntu Linux upgraded to 14.04, and my emacs got upgraded to 24.3.1 in the process. I noticed that it scrolls by itself. I finally realized that it automatically centers the cursor ...
6
votes
5answers
795 views

Highlight \n and %s “inside” strings

Is it possible for Emacs to highlight backslash escape (e.g. \n) and format keyword (e.g. %s) inside string, without messing up current modes' faces? Like this:
0
votes
1answer
596 views

Why is emacs saying my theme is undefined?

I'm pretty new to emacs customization and lisp, so I don't really know how to debug this problem. I'm trying to install a custom theme. Here's a link to the .el file. The theme's load-path is set ...
8
votes
1answer
1k views

How can I add a new colon-command to Evil?

evil-mode introduces vim-style colon commands (such as :wq to save and close). I have a few commands (such as kill-buffer, org-babel-tangle) that I'd like to be able to run through this instead of ...
10
votes
2answers
2k views

Emacs always ask to trust colour theme at startup

My Emacs always prompts me if it should trust selected colour theme or not. I always answer y and y to trust and remember my choice. I'm loading colour theme manually: (load-theme 'my-favourite-theme)...
2
votes
0answers
362 views

.dir-locals.el isn't recognized

I am working on a project that includes some configuration in .dir-locals.el: ((c++-mode . ((compile-command . "cd ../../\; ./build.sh")))) This gets picked up just fine for me and sets the ...
0
votes
2answers
126 views

Is there a way to modify or redefine a type of org-link locally?

I am searching for the best strategy to define custom behaviour for file: org-links locally to a buffer. Is there a way to modify or redefine this type of org-link ?
1
vote
1answer
526 views

Use spaces instead of tabs with use-package

This is more or less a question of putting the answer from Make web-mode always indent with spaces into the use-package declaration. I want to set tab indent to 2 spaces, and use the spaces ...
3
votes
1answer
597 views

Enable any outline mode for markdown

First of all, from http://www.emacswiki.org/emacs/AllOut: Allout outline mode is part of GnuEmacs. Allout outline mode provides extensive outline formatting and manipulation beyond standard ...
5
votes
1answer
104 views

Specify the order in which `defcustom`s are presented in the Customize UI?

I have an Emacs mode. It has a defgroup and a number of defcustoms. Let's say: (defgroup some-group nil "Some group" :prefix "prefix-" :group 'languages) (defcustom some-option-1 t "Option 1"...
0
votes
1answer
96 views

How to redefine the allout prefix keybinding

The allout mode document says, We recommend customizing allout-command-prefix to use just \C-c as the command prefix, if the allout bindings don't conflict with any personal bindings you have ...