All Questions

Filter by
Sorted by
Tagged with
10
votes
3answers
931 views

Export Emacs installed packages?

I am using emacs 24.4. I have added a large number of installed packages via the M-x list-packages directive over about a year of usage. I would love to export my installed packages list for use ...
5
votes
1answer
640 views

org-mode: List everything except certain tags in custom agenda view?

This documentation explains how to set up custom agenda views, and I understand the example code I've seen there. But there is one thing I'd like to do that might not be possible: I'd like to look ...
5
votes
1answer
946 views

Executing commands through shell-command (what is the PATH used)?

If I do: (getenv "PATH") I get a list of colon-separated directories, including: /Users/michaeln/Library/Haskell/bin If I look at the exec-path variable, I see a list including the same ...
9
votes
1answer
1k views

How to compile emacs with debug symbols?

I'm having trouble walking through emacs source code in gdb. I think I'm missing debug symbols. Following a suggestion from https://stackoverflow.com/a/4298982/2752242, I tried: ./configure CFLAGS="...
1
vote
0answers
46 views

wildcard expansion in buffer

I'm debugging with pdb in emacs and one of the parameters to the program I'm debugging is a list of regular expressions wrapped in quotes. Basically, pdb someProgram.py 'regex .* .*' from the ...
4
votes
2answers
1k views

Viewing org-journal entries

I have installed org-journal and it seems to work well to create entries. However, I can't find and view them again. The documentation on EmacsWiki says to view the entry: In calendar view: ...
2
votes
1answer
105 views

How to delete a huge org-table

I forgot to type :results none in babel and now I have a huge table in my org file. How can I select all of those lines and delete them? When I try the straight forward approach of moving to the end ...
5
votes
3answers
527 views

How to use helm to complete sources which are lines in a buffer?

I have a buffer (not a file) containing data. I would like a function that lets the user select 1 or more lines of this buffer, e.g., by typing a regexp, and that returns the result as a list of ...
0
votes
1answer
234 views

Dollar symbol inside lstlisting block turns on font-latex-math-face

I am using lstlisting to add shell code into my tex document. The shell code contains special character, $. Emacs assumes it as a Math mode mark & all characters that come after dollar symbol are ...
1
vote
1answer
243 views

How can I debug my init file using information from --debug-init? [closed]

I have my emacs setup as an alias in the bashrc as alias="emacsclient -t -s server alternate-editor=" in case this helps. The emacs version is 24.4.1 and AUCTeX is compiled from the git repo and was ...
2
votes
1answer
1k views

'projectile-global-mode' function is void at the startup, why?

I am addicted to helm-projectile, unfortunately after a recent update, all of a sudden I get the warning message at Emacs start-up that the function projectile-global-mode is void. Before that, ...
2
votes
2answers
961 views

Open file by name matching recursively from current folder

Our project has a folder structure which makes navigating files a bit of a hassle. basefolder --> libs --> libA --> libB ... --> utils --> utilA ... --> apps ...
0
votes
1answer
588 views

js2-mode: Highlighting and syntax checks only update when the buffer or mode is refreshed

As I'm typing into my buffer in js2-mode, the syntax is not being updated and all my new code is plain white. Additionally, existing text keeps its original color. For example, when I uncomment some ...
6
votes
1answer
220 views

Enable follow-mode for PDF in doc-view/pdf-view-mode

Is it possible to customize follow mode to open the next PDF page in another buffer? Currently follow-mode has no effect on PDF files.
6
votes
1answer
470 views

How can I keep dired in sync with a shell buffer?

I have some work that requires I move around between various sub-directories. Thus, the easiest way I have found to do that is to use dired. I also have to view some files (plain text or code), so ...
1
vote
2answers
176 views

elisp function to insert signature at point or at end, according to the prefix parameter

Under GNU Emacs 24.4.1, in Message Mode, C-c C-w runs message-insert-signature, which inserts the file message-signature-file at the end of the buffer, if such a signature is not already present. How ...
2
votes
2answers
6k views

cannot install auto-complete package

I am trying to install package auto-complete. But when I typed M-x package-install [ret], then emacs showed "contacting host: elpa.gnu.org:80". After a while, it showed "Install package". Then I typed ...
3
votes
1answer
1k views

how to remove the red underline

Occasionally I have this ugly red underline in my python code. It seems not related to any flymake error/warnings. Does anyone know why it shows and how it can be removed? Thanks! I am using latest ...
2
votes
1answer
200 views

this-command-key-vector and representation of Return key?

Q: how do I get this-command-key-vector to return a character vector when called with the return key? Consider the following simple command, which will echo the vector of keys that invoked it: (...
11
votes
2answers
417 views

Is using require multiple times on the same symbol idempotent?

Is require idempotent? i.e. do (require 'helm) and (require 'helm) (require 'helm) end with the same result?
5
votes
1answer
531 views

UnicodeDecodeError in my Inferior Python buffer

While trying to run a python script in an Inferior Python buffer for Python 3.3.5 in my Emacs 24.3.1 GTK+ window, I get a >>> Traceback (most recent call last): File "<stdin>", line ...
11
votes
1answer
658 views

How to change comment string used by comment-region?

Emacs generally comments regions well, but sometimes I wish I could change the string it prepends to lines. For example, in LaTeX, I would like to have a commented region only use a single % per line ...
3
votes
1answer
346 views

From File Manager, open file in specific instance of Emacs

Here's my intended use case: Emacs Instance 1: I have an emacs instance containing open buffers of the project I'm working on. All directly related. Emacs Instance 2: I'm in the Windows explorer, ...
0
votes
1answer
125 views

Tie a minor-mode to a particular major mode

I'm writing an extension to a major mode (coq-mode) that adds extra features, plus a few keybindings. To makes it easy to disable or redefine these keybindings, I packaged them in a keymap. That ...
0
votes
1answer
559 views

How to find heading substrings with org-mode internal links

With point over the link here, org-open-at-point jumps to the following line ("ham eggs"): * spam ** spam [[ham%20eggs][ham eggs]] ** ham eggs Here however (final line extended), the same action ...
1
vote
2answers
341 views

Regexp to font-lock numbers but not strings?

I would like to have my dollar sign yellow coloured. So after searching around, I learnt that the Emacs regex's are different from default regexs. After a while, I got this worked: (defface font-...
2
votes
0answers
709 views

How to disable the map from esc to meta?

I installed the oh-my-emacs configuration and try to use emacs in the terminal. oh-my-emacs configuration enables evil-mode in default, and my problem is that, I found esc is mapped to meta, while ...
1
vote
2answers
323 views

Smart minor mode toggle depending on major mode

I use several minor modes, which are enabled globally by default: whitespace-mode linum-mode fci-mode I'm finding them very helpful when editing code sources and text files, however I does not want ...
3
votes
1answer
2k views

What is the difference between reftex-citation and org-reftex-citation?

What is the difference between reftex-citation and org-reftex-citation? And where can I find the documentation for org-reftex-citation referenced in this answer? [1] Emacs manual: Creating citations
0
votes
1answer
677 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 ...
1
vote
1answer
210 views

How to check for new messages on thread before sending with gnus' message-mode?

I use gnus for email, including its built-in message-mode for composing/replying to email. Just before sending mail, I'd like to query my IMAP server to see if there have been any new messages on ...
4
votes
1answer
692 views

Order of evaluation of nested macros and backquotes

I read https://github.com/lunaryorn/blog/blob/master/posts/byte-compiling-eval-after-load.md which contains this code: (defmacro stante-after (feature &rest forms) `(,(if (or (not byte-compile-...
0
votes
1answer
138 views

How to disable scroll lock when moving point

A strange behaviour happens when I move up or down the point (using the keyboard): Emacs automatically scrolls up or down whenever I pass a certain line threshold. See here: When moving down, at line ...
5
votes
1answer
170 views

How can I fontify a symbol by regexp match group (as in a naming convention)?

I want to add better support for expl3 to AUCTeX. I have regular expressions that properly group according to the naming conventions for: functions (\\(?:__)?[a-z]+_)([a-z_]+)(:[nNpTFwcVvxof]*), ...
0
votes
1answer
144 views

How to use {est+} field?

~Emacs 2.4.1 under Linux. I would like to use the {est+} feature of column views as documented here. I customized org-columns-default-Format to be like this: (see last field) %50ITEM %TODO %...
0
votes
1answer
77 views

cancel outputing in pdb in emacs

In python-mode, I invoke pdb on a python script by M-x pdb script.py. I then type c to run till a breakpoint, and hit the name of a big list. It keeps on printing the content of the list in the buffer ...
1
vote
2answers
359 views

Hacking a “line-below” version of indent-relative

From indent.el: (defun indent-relative (&optional unindented-ok) "Space out to under next indent point in previous nonblank line. An indent point is a non-whitespace character following ...
9
votes
1answer
692 views

why doesn't emacs support key up/down events

AFAIK emacs does not support keyup/keydown events, only keypressed. An example of a consequence is that when we want to mark a region we have to first set a mark set-mark-command and can then mark the ...
2
votes
2answers
1k views

C++ Incorrect Enum Indentation

It seems like cc-mode indentation is working rather well, however I seem to have run into a minor issue when creating a few enums in C++. Emacs seems to handle almost all kinds of enums rather well ...
2
votes
1answer
225 views

Unicode and `url-unhex-string` and something like \345\205\266\344\273\226

I need to use Emacs built-in url.el url-unhex-string to decode uri (e.g. /%E5%85%B6%E4%BB%96/other) It works, but all non-ascii (I guess it should be Unicode) characters are all converted into ...
1
vote
0answers
99 views

How can I print a full reference using reftex?

I would like to embedd full references of BibTeX entries in selected sections of my org-mode files or at least have the ability to quickly open the full reference in a new buffer. How can I do that? ...
6
votes
1answer
696 views

Run hook on new buffer

I am trying to create something like uniquely, which renames the buffer to the full path within the projectile project. I have the code working, however, I can't seem to figure out how to get it to ...
10
votes
1answer
2k views

Export an org-mode file as a PDF via command line?

What command-line arguments do I use to get Emacs to export an org-mode file to a Beamer PDF? (I want to create a Makefile that produces a PDF when the user runs make.) I tried following this answer ...
0
votes
0answers
158 views

Conventional implementation of display-buffer-above-selected

Despite respectable variety of display-buffer-* functions some of them stand out with lack of flexibility, such as display-buffer-at-bottom or display-buffer-below-selected that exist in absence of ...
5
votes
1answer
2k views

Are there any games to kickstart learning emacs like VIM Adventures?

I am a newbie in emacs and have heard a lot about how powerful emacs is. But the leaning curve seems to be quite steep. If there was a fun way to learn emacs (something like the game VIM adventures) ...
8
votes
2answers
343 views

How can I match “snake_case” automatically when I search for “snake-case” by mistake?

I frequently mistype "_" as "-" when doing a quick isearch-forward. E.g. I'm looking for snake_case and accidentally type C-s snake-case and get no results. Best case I notice quickly enough and don'...
1
vote
1answer
152 views

Sort by artist in EMMS with compilation albums?

I've been using the Emacs Multi-Media System and it works pretty well, but one thing i can't figure out how to do is sort by AlbumArtist. This is important, because i have many compilation albums and ...
8
votes
2answers
958 views

Automatically add recipients' mail address to the BBDB database

I am using BBDB3 with Gnus. I want to make BBDB to update the recipient address in its database for each mail I send (just like Gmail does). Is it possible?
1
vote
0answers
686 views

Cannot load auto-complete library

I have installed auto-complete in the /Users/angeldelcastillo/.emacs.d/auto-complete directory following the instruction on the website, using install.el. The process finishes all right, but when I ...
2
votes
1answer
138 views

set-transient-map oddity for emacs -nw

I have this tester code: (defvar dbg-vec nil) (defun foobar () (interactive) (message "%S" (setq dbg-vec (this-command-keys-vector)))) (set-transient-map '(keymap (left . foobar) ...

15 30 50 per page
1 332 333 334 335 336 364