Questions tagged [customize]

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

Filter by
Sorted by
Tagged with
3
votes
0answers
398 views

How to mark risky variable as safe?

I have some customization in my .dir-locals.el. Some of variables set there are unsafe and when I set them and visit some file in dir for the first time Emacs nicely asks me to save their name-value ...
0
votes
3answers
2k views

How to get Emacs to automatically open a specific directory on startup?

I would like Emacs to open the folder $HOME/Documents/CodeLite/CPP-Math-Projects/Simple-Pendulum on startup and show it in the directory browser. Is there a way to do this? I have read https://www.gnu....
2
votes
0answers
133 views

How to change the line height in the menu

Here "menu" means something which appears when you hit F10. (Not the menubar.) Because my display is small, several options are hidden below. (See the following image. You can not see "Quit".) This ...
0
votes
1answer
79 views

Dashes (or strippled line, dashed) in tabbar for emacs with X

I'm trying to go full minimalist over here... But I can't figure out how to remove the strippled line next to "untitled". I'd like it to be nothing at all. The customizations I've done so far for ...
1
vote
0answers
656 views

Insert Current Date and Time with Custom Timestamp

I am trying to get org-mode to insert a custom timestamp with the current time. Something along these lines: 20160824 34|3 163000 (UTC) Which I believe should be the following: ("%Y%m%d %W|%u %H%M%...
1
vote
1answer
34 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
2k 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
3k 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
199 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
684 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
765 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
100 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
2k 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
85 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
94 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
103 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 ...
3
votes
1answer
116 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
165 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
303 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
430 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
148 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
200 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
66 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
4k 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
665 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
118 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
148 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
866 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
256 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
62 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
768 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
87 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, ...
2
votes
2answers
739 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
72 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
2k 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
38 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
664 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
192 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
149 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
818 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
620 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
3k 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
375 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 ...