Most Popular

1500 questions
11
votes
1 answer

python auto indent problem

I'm using Emacs 24.4. When writing Python code, Emacs behaves strangely with respect to indentation. For example: for i in range(10): print(i) for i in range(10) When I input :, Emacs adds a needless indent at the beginning of the third line.…
Hunger
  • 213
  • 2
  • 7
11
votes
3 answers

How can I have multiple *Help* buffers with different content?

Using C-h f and C-h v shows usefull help. Sometimes I want to compare information. So it would be useful to have more than one *Help* buffer, with different content, visible at the same time. But always when using the shortcuts the content of the…
jue
  • 4,476
  • 8
  • 20
11
votes
1 answer

Fontify broken links in org-mode

If I create a bad [[file:link]] or an internal [[Link]] that does not exist, I would like to org-mode to fontify this using org-warning face. How can I get this done? Thanks,
Adam
  • 1,857
  • 11
  • 32
11
votes
3 answers

How can I remove an unnamed advice?

I was having fun adding some advice to a function: (advice-add 'executable-find :around (lambda (f &rest args) (apply g args))) ;;; ^ Ouch, a typo. Fixed it and evaluated above code again. But now I have…
Daniel Jour
  • 415
  • 2
  • 10
11
votes
2 answers

Convert a normal key into a modifier key

I have a keyboard which, for some inexplicable reason, features a key that sends the Danish Dollar symbol to OS X - §. With shift it sends the plus/minus symbol - ±. Is it possible within Emacs to see the § key and convert that into Hyper or Super?…
Matt Darling
  • 151
  • 1
  • 10
11
votes
3 answers

how to name buffers (*shell*)

I'm interested in naming Emacs buffers. In particular I'd like to give names to shell buffers that I've started. That way I can easily tell them apart when switching buffers.
m33lky
  • 297
  • 3
  • 9
11
votes
1 answer

How to have wrapped text when exporting from org to Latex?

I have an org file which I export to LaTeX and then to a PDF document. The problem is I have some long text that exceeds the length of the page. How to wrap it so that it falls into the next line? First example: #+BEGIN_SRC c++ //…
Alex
  • 197
  • 1
  • 7
11
votes
2 answers

How to change the mouse pointer colour?

I am using the ample theme and I quite like it, but I can't see the mouser pointer when moving over emacs and emacs is activated; as the emacs background and the mouse pointer are black, I would like to have the mouse pointer in e.g. red. How can I…
Rainer
  • 897
  • 10
  • 16
11
votes
4 answers

Run emacs GUI from emacsclient

I am running emacs 25.1. I have emacs server starting as a daemon on startup and I can open an emacs terminal session with the following alias: alias em="emacsclient -t" How can I start the emacs gui in a similar fashion?
dagda1
  • 595
  • 1
  • 3
  • 16
11
votes
3 answers

How to avoid scrolling with large files hanging for short periods of time? (holding page keys for example)

Even using default settings (emacs -Q) I've found large C files can be slow to scroll with Emacs. If for example, I open a large file and hold Page-Down. It will scroll down 1-2 pages, then hang for a second or two, on releasing the document is…
ideasman42
  • 8,375
  • 1
  • 28
  • 105
11
votes
1 answer

How to navigate a JavaScript project?

I'm currently working on a JavaScript project using Backbone.js and I wonder how can I navigate between files, based on method and object definitions. For example, I keep references to some of my views in the global object App.Views, and I would…
caisah
  • 4,056
  • 1
  • 23
  • 43
11
votes
3 answers

Customizing indentation in makefile mode?

In my makefiles, I prefer the following indentation for continuation lines: FILES:= \ file1.cpp \ file2.cpp \ fileYetAnother.cpp LIBS:= \ libsth1.so \ …
Mekk
  • 1,017
  • 7
  • 14
11
votes
4 answers

How to search in multiple files with Emacs without grep?

There is a folder with many sub-folders, files and I would like to search for a given piece of text in all of these files with Emacs on a Windows 10 machine. (I know about M-x grep, but it does not work in Windows environment.) Is there any way to…
user14685
11
votes
7 answers

How to remove / delete nth element of a list

Q:  How to remove / delete nth element of a list. CAVEAT:  Do not remove all occurrences / members matching nth element -- e.g., eq or equal. EXAMPLE:  Remove the 17th element of: '(a b c d e f g h i j k l m n o p q r s t u v w x y z) nth ELEMENT…
lawlist
  • 18,826
  • 5
  • 37
  • 118
11
votes
3 answers

How to sort directories first in dired?

I add (setq dired-listing-switches "-lXGh --group-directories-first") in my init.el But when I go into dired mode. ls does not support --dired; see ‘dired-use-ls-dired’ for more details. insert-directory: Listing directory failed but…
Jay Lee
  • 323
  • 2
  • 9