All Questions

Filter by
Sorted by
Tagged with
5
votes
1answer
154 views

What is the proper MIME type for .el files?

I'm uploading a .el file to my server, and I'd like to set my .htaccess so that the file gets downloaded rather than displayed in the browser.
7
votes
2answers
750 views

Performance differences in comparing symbols and strings

In sx.el, we have a case where we need to verify if we've passed GET or POST as an argument. Currently we have the argument passing as a string and are using (string= "GET" url-method) to compare it ...
8
votes
1answer
449 views

Org - show checkboxes in Agenda?

Is there anyway to show outline with its checkboxes in Org Agenda views like this? ** TODO Checkboxes [1/3] SCHEDULED: <2014-11-28 Fri 12:00> - [X] Wash cloths - [ ] Buy milk - [ ] Wash ...
9
votes
2answers
309 views

Make isearch skip folded content in org-mode

Q: How can I tell isearch to ignore the contents of folded blocks by default in org-mode buffers? More specifically, I'd like isearch to ignore contents of comment blocks and drawers: When authoring ...
20
votes
8answers
6k views

Hide list of minor modes in mode-line

I use quite a few minor modes and usually I know which minor mode is enabled in every major mode. If I really want to see the full list, I can run C-h v minor-mode-list. At the same time, my mode ...
6
votes
2answers
938 views

Change the way CC-mode font-lock the C++11 `auto` syntax

With C++11, the keyword auto attained a new syntax and semantics. However, it seems that CC-mode has not been aware of this. For example, if I write auto var = exp, I get var in green, in which ...
1
vote
0answers
554 views

Paredit: paredit-forward and paredit-backward don't work

I've been having trouble with navigating in paredit. When I try using C-M-f and C-M-b to go forward and backward, nothing happens. The minibuffer doesn't respond and the point doesn't move. When I ...
0
votes
1answer
440 views

Emacs ZNC-ERC: How to make Customize save my preferences for all sessions

I am setting up my ERC client to connect to my ZNC IRC proxy server, and I am following this Emacs wiki. At the following step: ;; Configure M-x customize-group znc RET I am in the Emacs customize ...
-2
votes
2answers
110 views

Indispensable emacs modes for rails? [closed]

Are there definitive must-have modes when developing on rails, I usually get absorbed on the sea of different packages out there, is there some place that list them?
9
votes
2answers
3k views

Force using fixed-width font in org-mode

What's the simplest way of forcing Emacs org-mode to use the same fixed-width Font Family and Height everywhere (but keeping other properties distinct, like Foreground)? I could make all org-level-n ...
4
votes
3answers
1k views

Access menu-bar using keyboard on Mac OS X

When I hit C-f2 in any Mac OS X app (e.g., terminal, firefox), I get keyboard access to the menu bar (file/edit/options &c) In emacs I get a message <C-f2> is undefined in the Echo Area. ...
4
votes
1answer
323 views

define-error for older Emacs?

I'm using define-error to throw custom errors. But it looks like this function wasn't yet implemented in emacs-24.3, for instance. It still seems to work for emacs-24.3 if I write this: (when (...
4
votes
1answer
113 views

shortcut for \neq in AUCTeX

I cannot find a shortcut for the command \neq (not equal) in AUCTeX by the answers provided to my previous question A comprehensive list of shortcuts provided by AUCTeX I would be great if it would ...
1
vote
1answer
240 views

docview: suppress “File X is too large, really open?” confirmation

Is it possible to avoid the "File X is too large, really open?" confirmation? If not, would it be possible for Emacs to remember my answer the first time I visited a large file? If I visited it once,...
3
votes
1answer
1k views

“Error in process sentinel: Selecting deleted buffer” when exiting Emacs?

I am getting the following message when I do C-x C-c to exit Emacs: error in process sentinel: Selecting deleted buffer So instead of exiting Emacs like normal, I am forced to close it through ...
15
votes
3answers
548 views

Command to visit Github pull request of current branch with Magit

It's very common that, after pushing a given branch upstream, I'll want to visit it on github and create a pull request. I'm starting to get annoyed at having to manually visit the repo, find the ...
16
votes
2answers
2k views

How to checkout ours/theirs on a file in magit?

Let's say I have a merge conflict. I see a conflicted file like this: Unstaged changes: Unmerged Foo/bar/wibble/plop/elbow.txt I can hit tab here to open the changes and maybe jump to a point ...
16
votes
3answers
3k views

Changing the compilation mode current directory automatically?

Currently, my compilation command is as follow: cd ~/somedir && ./somescript.sh This prevents emacs from finding the file in which an error happens (and opening it). Of course I can run M-x ...
14
votes
5answers
1k views

How can I make `--verbose` flag be enabled by default in magit commit screen?

Right now, instead of pressing just cc in magit-mode, I have to press c-vc every time to enable --verbose. Is it possible to make it enabled by default?
6
votes
1answer
96 views

How to preserve the visual height of the cursor after an operation?

Q: How do I find the visual line number of point (so that I can restore it after an operation)? By “visual line number”, I'm referring to the number N of lines between the top of the window (or the ...
6
votes
2answers
738 views

Bind f-key in use-package

How can I bind an f-key using jwiegley's use-package package? Any of these combinations produces an error: :bind ("f11" . multi-term) :bind (<f11> . multi-term) :bind ([f11] . multi-term) (...
12
votes
1answer
520 views

changing the role of the underline and the minus-sign just in LateX-mode

During the work with tex files with auctex+emacs (LateX-mode), I use more frequently _ (underline) instead of - (minus sign). The same as ^ instead of 6. The inconvenience is that I should press more ...
5
votes
1answer
497 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 ...
4
votes
2answers
125 views

Hi-lighting common grammar mistakes in all prose across modes with English text

I already make extensive use of flyspell-mode to keep my errant spelling in check. However I'm currently trying to break the bad habit of using "it's" for possessive statements. I've had a brief look ...
14
votes
3answers
5k views

Easiest way to install Emacs Windows support libraries

I installed binaries of Emacs 24.4 for Windows and want to install the support libraries described in the Emacs for Windows README. The latest precompiled libraries are available from the ezwinports ...
8
votes
2answers
1k views

How to truly unbind ALL global keybinds?

I've just tried (set 'global-map (make-sparse-keymap)) but issuing C-hb still shows tons of crap, especially in the Global Bindings section: Global Bindings: key binding --- ...
3
votes
2answers
955 views

Mac OS Keychain with SMTP email password

How do I get Emacs to use the Mac OS Keychain for my SMTP email password? I'd like to eschew an .authinfo file in favour of the Mac OS Keychain but can't seem to get it going. I keep receiving the ...
6
votes
3answers
492 views

file-notify support on OSX

Is Notifications on File Changes supported on Mac OS X? I can't seem to find any documentation about how to do this anywhere.
5
votes
1answer
90 views

Context sensitive skeleton triggered by abbrev stuck in loop

I want to create a skeleton, triggered by the abbrev keyword 'func' which checks its context and runs one of two possible sub-skeletons. Here's what I have: (define-skeleton my-func-skeleton "func ...
31
votes
3answers
4k views

Org-mode on the phone or on Evernote?

I use Org mode for keeping track of everything; ideas, notes, to-do lists, code snippets, etc. You name it. One problem I have though, is that I can't easily pull up my Org-mode data on my phone, even ...
0
votes
1answer
341 views

Defining key-bindings within `helm-map`: getting a `void-variable helm-map` error [continuation] [duplicate]

Following the same steps as Dipak C in his question regarding void-variable helm-map error but still cannot solve the problem even after adding (package-initialize) just after (require 'helm-config) ...
7
votes
1answer
720 views

working setup for ipython in babel

Can someone point me to a working setup for using babel with IPython? I'm witnessing strange indentation behavior when I try to define functions. This happens whether or not I specify the --classic ...
5
votes
2answers
332 views

convert fraction to decimal in org spreadsheet

How do I convert 1:6 into 0.166666 using the org spreadsheet? I was thinking it should be $4=$3;%f but it's clearly not. | x | y | z | f | |---+---+-----+----------| | 1 | 1 | 1 | 1....
0
votes
1answer
78 views

How can I use two hooks with overlapping usecases?

I'm in the process of writing an Emacs package that helps you controlling popup windows and have hit a minor roadblock while developing a new feature for it. Currently I'm using window-configuration-...
5
votes
1answer
831 views

Which version of CEDET should be used with EMACS 24.4.1 for java development?

CEDET Version: 2.0 I have EMACS version GNU Emacs 24.4.1 (x86_64-w64-mingw32) of 2014-10-20 on KAEL which comes with CEDET version Requested File Loaded Package Version ...
6
votes
2answers
1k views

How can I use ERC with an IRC offered over SSL?

I'm trying to connect to Gitter's IRC servers to join the chat room vermiculus/stack-mode, but according to Gitter, they offer this service over SSL: _ _ _ _ _ ...
35
votes
3answers
8k views

Good methods for setting up alarms (audio + visual) triggered by org-mode events?

I would like to have alarms set off based on org-mode events associated with specific times (or start times). Ideally these would be audio and visual, and able to be customised to some extent. I ...
11
votes
2answers
1k views

How can I draw pixel- or vector-based UI elements in Emacs?

With that I mean UI elements (for example text fields and animated buttons) that are not restricted to the monospaced character grid of terminal emulators, but can be arbitrary shapes at arbitrary ...
7
votes
1answer
608 views

Extract file(s) to hard-drive from `archive-mode`

I'm looking for a means to extract individual and marked files from archives (e.g., *.zip; *.gz, etc.) to the hard-drive (without opening them in a buffer) using archive-mode. A suggested ...
2
votes
1answer
518 views

Make Jabber.el stop alerting me when new messages are written on MUC, unless I'm highlighted

I tried to follow emacswiki article about Jabber.el to configure it on my Emacs. However, my changes do not works. Alerts stealth the minibuffer, and its annoying to see an alert when I'm doing ...
20
votes
3answers
2k views

Why does lisp-interaction-mode exist, and do we ever need it?

Q: Why does lisp-interaction-mode exist, and are there any reasons to use it instead of emacs-lisp-mode? The manual states that emacs-lisp-mode and lisp-interaction-mode are identical except that the ...
2
votes
1answer
568 views

How to add a key-chord escape in Evil for input in other languages?

How do I get key-chords to work with evil and alternate input-methods? I enabled Korean input by M-x set-input-method and chose korean-hangul, which I found from following the first few instructions ...
21
votes
1answer
2k views

What piece of code in Emacs makes `line-number-mode` print “??” as line number in buffers with long lines?

I'm using line-number-mode to have an indicator of the current line in my modeline, however for large files or rather, files with long lines, it starts displaying two question marks instead of a line ...
2
votes
2answers
188 views

Dired show specific files in default omit-mode

I'm omitting certain files in dired mode using this hook: (add-hook 'dired-mode-hook (lambda () (dired-omit-mode 1))) Is it possible for me to display parent directory .. in the omit-mode ?
19
votes
2answers
3k views

A faster method to obtain `line-number-at-pos` in large buffers

The function line-number-at-pos (when repeated about 50 times) is causing a noticeable slow-down in semi-large buffers -- e.g., 50,000 lines -- when point is near the end of the buffer. By slow-down, ...
6
votes
1answer
1k views

Org code block receives table without header

I'm trying to send an Org table as a lisp object to a code block for further processing with an elisp function. For testing I set up two code blocks, one that generates the table and another that ...
1
vote
2answers
1k views

Key translation

As a result of an answer in a previous question of mine I am trying to translate M-RET in C-u C-RET using the following code: (define-key key-translation-map (kbd "M-RET") (kbd "C-u C-RET")) I have ...
4
votes
1answer
1k views

What is the hook used by company-mode to perform autocompletion?

According to describe-key (C-h k), every character I type runs self-insert-command and I suspect that self-insert-command calls some undocumented hook to perform text completition. I am trying to ...
4
votes
2answers
575 views

Indentation of newlines

I am writing source code and a lot of times I need to press Enter and have the newline indented with 4 spaces more than the previous. As I don't want to do it always, I would like to be able to use C-...
2
votes
1answer
78 views

Accessing resource files in ERT tests

I'm trying to use ERT to test the ycmd package, and part of what I need to do is pass bodies of code to the ycmd server and ask for completion candidates. I'd like to be able to keep these bodies of ...

15 30 50 per page