# All Questions

19,439 questions
Filter by
Sorted by
Tagged with
96 views

### remove delimiter and comment typing from [Ljava.lang.String; in clojure-mode

Parsing parentheses: smie vs syntax table gives one example of how to use syntax-propertize-function but I wonder if someone could help me with another example. I'm working with clojure-mode. Here's ...
165 views

### What face do I need to adjust to remove the gutters at the edges of my windows?

This is not urgent, but just wondering if an Emacs user could let me know which face I need to adjust to remove the faint gutters at the edge of my windows? I am using GUI GNU Emacs 25.0.50.1 X86_64-...
452 views

### What templates are available for generating an elisp library?

At some point I remember encountering a command that generated a skeleton of a properly formatted emacs-lisp library as below: ;;; library.el --- summary ;; Copyright ... ;; Author: ;; Keywords: ;;...
232 views

### How can I make emacs ignore part of the file name when deciding major mode?

If you have a GPG-encrypted file, say notes.org.gpg, emacs figures out that the major mode has to be set to org-mode. This applies in general to any major mode out there; you do not need to modify the ...
97 views

### Is there a possibility to close the right syntax for another languages?

When I was watching Emacs Rocks, there was a feature showed, called sgml-close-tag. You can see an example here. When called that command, he will close the tag for you if there is a tag missing. I ...
977 views

### How can I quickly enter a directory in helm-find-file when there is only one to select?

I'd like to quickly go down the file hierarchy and select the following dir when there is only one to select. There would be two way of doing this : Stop showing the current and parent dir Select by ...
277 views

### How can I read -mdoc /-mandoc man pages using M-x woman?

I have been successfully using M-x woman to access the linux man pages. But when I tried to read the tmux manpage using woman, it did not work. But M-: (man "tmux") works. Using woman to ...
289 views

### Ctrl-K Kill Line, Not Screen Edge in Visual Line Mode

(I apologize in advance for my general technical / emacs inexperience. I use org-mode for writing novels, so have not delved very deep into its many options) I have visual-line-mode set as my default ...
314 views

### why is emacs indenting when I type an open paren

I'm very new to Emacs and I like it so far, but there is one thing that has been bugging me. Its auto-indenting has been acting pretty random. Whenever I am on a new line and type something like: ...
450 views

### Emacs indent with tabs to 2 columns

Current with C, Javascript, Ruby, etc. when inserting a block with { <RETURN>, Emacs automatically indents the next line, but it does so with spaces. How do I change this behavior to tab ...
2k views

### Indention and tabs in fundamental mode

How can I control the indentation of a line in a plain text file? In fundamental-mode, when you begin to type a line (call it Line A) after a previous line by hitting return, the line will ...
655 views

### Different fonts for different Emacs' windows

Usually I have two windows vertical split layout when using Emacs. I'm curious is it possible to change default font size for one of them? Typically, I use 14 points font height with 80 columns ...
3k views

### How can I edit the Helm results buffer and have the changes reflected in the original buffers?

I've seen this demonstrated before in various screencasts and can't find it searching through the docs. I do use helm-swoop-edit quite often in a single buffer but when I need to change all ...
760 views

### How do I run multiple versions of Emacs with the same .emacs.d

I alternatively run 24.5 and 25.0.50. Unfortunately, packages installed and compiled from 25.0.50 don't work with Emacs 24.5 (cl-struct-define is a common culprit). One trivial solution is to not ...
111 views

### Gnus fails to decrypt an email encrypted using GPG

When I try to open an encrypted message, Gnus asks me for my passphrase, which it seems to accept. But then it doesn't decrypt the message, and it doesn't report errors either. I can otherwise ...
667 views

### Yasnippet invoked org-time-stamp function inserts double timestamp

I created a yasnippet template to quickly timestamp a note I'd like to make in org-mode. The body of the yasnippet file reads \$0 :PROPERTIES: :CREATED: (org-insert-time-stamp nil t t) :END: ...
340 views

### Emacs 24 GUI on OXS turn off transparency

I'm using GNU Emacs 24.5.1 (x86_64-apple-darwin13.4.0, NS apple-appkit-1265.21) of 2015-04-10 on builder10-9.porkrind.org (from emacsformacosx.com) and I've got this annoying transparency going on and ...
3k views

### How to escape regexp special characters in a string?

I'm composing a complex regular expression and the user can supply a part of the expression. However, the user-supplied part should be interpreted literally, i.e. regexp special characters should be ...
4k views

This question has been asked at superuser is-there-a-way-to-reload-environment-variables-in-emacs, but no good solution was given. I am using EmacsClient with often more than 30 buffers open, if I ...
854 views

### Disable '+' markup in org-mode on a by-file basis

How do you escape the + to not mean strikethrough in a single file? For example, when typing use += 1 instead of ++ how can this not-be-strikethrough'ed? Escaping the + with \ as in \+ works ...
102 views

### perl syntax highlighting disactivated

I'm using emacs for perl scripting and for some unknown reason the syntax highlighting is inactivated when opening new or existing scripts. I'm wondering if I press a key unknowingly that ...
381 views

### Easy way to give the time its own face in modeline?

Is there an easy way to give the time (as displayed by M-x display-time-mode) a separate face in the modeline? I don't need anything too fancy like powerline, I'd just like to be able to have the ...
117 views

### Unbalanced quotes auto-inserted in AUCTeX mode

This seems like it should be a very basic question, but I cannot find an answer anywhere. When writing in AUCTeX mode the auto-inserted paired quotation marks are now unbalanced. That is, when I ...
239 views

### Emacs 24.4 in OS X 10.10 is not restoring windows configuration (desktop)

I read that Emacs 24.4 should restore the desktop by default. It works perfectly except that the window configuration is not retained. It is saved because I can clearly read it in the desktop file, ...
740 views

### org-table alignment issues in osx

I am used to my tables aligning nicely when I hit C-c C-c in Linux. In Emacs for OS X (emacsforosx.com) this does not behave on my system. It works in Aquamacs.
407 views

### How can I clear the contents of the clipboard before calling clipboard-kill-region?

I use clipboard-kill-region to copy contents from Emacs to other programs. But sometimes, it copies the same content twice into the clipboard. It looks like, /home/user/.emacs/home/user/.emacs when ...
551 views

### Run Python script with after-save-hook

I wrote a Python script to parse an org file that I keep my tasks in, reformat those tasks, and save them to a taskpaper file so that I can easily view and process the tasks on my phone. The script ...
4k views

### What are possible real use cases of the Emacs “psychotherapist” mode? [closed]

It is well known that when you type M-x doctor, a kind of AI program prompt you to write about your problems, as a psychotherapist does. Some said it's an easter egg, but it seems it goes beyond the ...
2k views

### Inverting colors in emacs

Is there any extension or easy way to invert colors in emacs? I tend to show code a lot through screen sharing and often a light theme is better while the dark is more comfortable for me to work ...
2k views

### Web mode HTML tag highlighting

First off, a picture of what I see, editing a handlebars file: My colour theme is base16-grayscale, so that blue is probably hard coded somewhere. I asked on the web-mode mailing list, but was told ...
408 views

### Setting width of relative-line-numbers

I am using the relative-line-numbers-mode and a 90 degree turned screen, which makes the text jump when it goes from displaying 100 in the relative number. Is it possible to set a fixed width for ...
245 views

### Why are packages showing as status 'External' in list-packages

I appear to have broken something in my Emacs environment (running on Windows in case it's relevant). package-list is currently displaying all the packages I've just installed with it as Status '...
366 views

### Windmove-mode: S-up and S-down becomes text selection instead of switching windows

I enabled windmove by running m-x windmove-default-keybindings. S-left and S-right work as expected when two windows are side by side. However when a frame is splitted vertically, I cannot use S-...
193 views

### Why does emacs insert a #coding header into my file?

I have a file where every time I save the file emacs inserts a # coding: utf-8 at the top of the file. I'm using the prelude package. How do I turn this off? I'm having a hard time tracing where this ...
909 views

I'm using the taskjuggler export backend for org-mode. All works well except I cannot work out how to set some project global values. I want to set the follow for all my exported *.tjp files timezone ...
57 views

### Meaning of AucTeX warning here

I've created the following LaTeX file: \documentclass[10pt]{book} \usepackage{subfiles} \usepackage{mystyle} \begin{document} \subfile{./tex/title.tex} \subfile{./tex/intro.tex} %warning here says: ...
95 views

### Swift major mode indentation is not moving to expected position

When I type a } to close the for loop, the '}' is moved to position as shown in the screen shot (where the cursor is) I expect it to be at the same column of the for keyword. Indentation for lines ...
348 views

### Unable to find projectile in the package list

I have added these lines to a file ~/.emacs.d/package_init.el (require 'package) ;; You might already have this line (add-to-list 'package-archives '("melpa" . "http://melpa.org/packages/...
641 views

I sometimes edit org files in non-org-mode. (e.g artist mode). Upon returning to org-mode, it will mess with the fold/collapse state. E.g it will collapse all headers so that I loose my current spot ...
422 views

### log keystrokes with timestamp and other metadata?

If I evaluate this form: (open-dribble-file "/home/joe/keys.log") then type something, Emacs saves what I type to the keys.log file: <return>hellow<backspace> keyloggi<down-mouse-5&...
1k views

### Agenda span of “last 7 days”

I write my weekly report on Wednesdays. As such I need to see what I've done starting last Wednesday until now. (usually a Wednesday). I would like to create an Agenda view for this, so I can ...
49 views

### How can select text in a single window in a multi-window configuration? [duplicate]

When I have two buffers open side by side in as terminal (as shown in the screenshot), I cannot simply select text in a single buffer for copy and paste purpose. The selection will span across them, ...
3k views

### Emacs: how to open and play a video file

If I am exploring my file system in Dired-mode and I come across a video file, for example, it would be nice to be able to play that video file. How can I do this in Emacs? I can use Emacs to open a ...
5k views

### What's the best way to use local packages in spacemacs?

I'm a developer for a package (ycmd) used by spacemacs, and I'd like to try using spacemacs as well. I'd like spacemacs to use the "development version" of my package, i.e. the one I'm hacking on ...
3k views

### Documentation for Python with company

I'm using Emacs with company and company-quickhelp. This works fine for Elisp and Clojure. However, displaying the quickhelp popup (or function signature) in Python mode doesn't work. I installed ...
295 views

### What does “(#o4, #x4, ?\C-d)” mean here?

I use m-x eval-expression to evaluate a very simple lisp code: ( + 1 3) And I got my result like this What does the symbols (#o4, #x4, ?\C-d) mean in this context?
273 views

### System Wide Hide/Show Keybinding

In OSX' iTerm, you can instantly show/hide the window by the (default) alt-space keys. How can I configure emacs to have similar functionality? I want to run GUI emacs, and be able to show/hide it on ...
279 views

### inserting passwords into pass from shell-mode

I'm trying to manage my passwords using the pass script from shell-mode inside Emacs. The script prompts me to enter the password twice as is customary when adding or changing passwords. The first ...