Most Popular

1500 questions
20
votes
2 answers

Completely disable all auto-indentation

How do I completely disable all auto-indentation in Emacs? I need to disable it at least for Fundamental mode, but I'm fine with it being disabled globally for the current session. Please read the rest of this question before declaring it a…
Mr Fooz
  • 303
  • 1
  • 2
  • 6
20
votes
3 answers

replace splash screen with list of recentf

The splash screen is useful in the beginning, but now I want something more useful: I want to have list of recently opened files presented when starting emacs if there is no predefined file to open. Even better, if it can be the helm-recentf window…
biocyberman
  • 962
  • 7
  • 17
20
votes
4 answers

How to set emacs as the default file manager?

Some programs like firefox have buttons that when clicked open a file manager for browsing files. How do I make it to open in emacs with dired mode on Debian Linux?
godblessfq
  • 1,177
  • 8
  • 21
20
votes
2 answers

How to pronounce "magit"?

Q: How does one pronounce magit? It occurred to me today that I've never said "magit" out loud, and I'd prefer not to make a fool of myself if I ever have to do so. So: is the g in magit pronounced as: a j, as in magic, or a hard g, as in git? I…
Dan
  • 32,584
  • 6
  • 98
  • 168
20
votes
3 answers

Orgmode: is it possible to set tags at a file level?

Having a file for a particular project, I would like all the nodes in that file to have a tag identifying the project, so that I can later use it to create agenda views for that project only. So far all I've found is #+TAGS: foo bar spam which…
20
votes
2 answers

Run command when opening a file of a specific filetype

I'm trying to get a lisp script to run some commands for me when I open a file of a specific filetype. I know that I'm working in the correct init file because if I remove the theme from it, emacs has no theme when I start it up. This is the script…
SiXoS
  • 303
  • 1
  • 2
  • 5
20
votes
3 answers

Get list of active minor modes in buffer

How get a list of active minor modes in current buffer? Docs (info "(elisp)Minor Mode Conventions") say: Define a variable whose name ends in ‘-mode’. We call this the "mode variable". The minor mode command should set this variable. The value…
gavenkoa
  • 3,352
  • 19
  • 36
20
votes
7 answers

in org-mode, how to remove a link?

How do I remove an existing hyperlink without having to wade in and manually delete a bunch of brackets? When I try to org-insert-link and just delete the existing link, I get Lisp error: (error "Empty link"). I want to remove the link and preserve…
incandescentman
  • 4,111
  • 16
  • 53
20
votes
4 answers

How to get element number in a list?

Q: how do I get the element number in a list? nth gets element number n from a list: (nth 2 '(a b c d)) ; => c I'd like to do the reverse: get the element number given the element: (some-function 'c '(a b c d)) ; =>…
Dan
  • 32,584
  • 6
  • 98
  • 168
19
votes
1 answer

Set default language for code-blocks in orgmode

Is there a way to define a default language for org-mode code blocks in the docuement header? Usually, within one org document, I only use one programming language, so it's getting tiresome to always write #+BEGIN_SRC python [...] #+END_SRC It…
andreas-h
  • 1,559
  • 13
  • 22
19
votes
2 answers

Is there a possibility to have multiple agenda views open at once?

I have a custom agenda view which shows the Items I did last week and the items I have to do in this week. This view is based on a filter of TODO items. However, it would be good to see scheduled items and deadlines in another buffer. Of course I…
Phil Ipp
  • 499
  • 4
  • 9
19
votes
1 answer

How to turn a heading into a list item in org mode?

When working on the structure of a document, often I find myself wanting to turn a list of items into a set of headings, or a set of headings into a list. I haven't found a way to do this easily other than by hand-editing or recording a macro. How…
Ernest A
  • 461
  • 3
  • 10
19
votes
3 answers

How to collapse undo history?

I'm working on an Emacs mode that lets you control Emacs with speech recognition. One of the problems I've ran into is that the way Emacs handles undo doesn't match how you would expect it to work when controlling by voice. When the user speaks…
Joseph Garvin
  • 2,061
  • 8
  • 21
19
votes
4 answers

Emacs 28.2 error in macOS Ventura: `image-type: Invalid image type ‘svg’`

since upgrading to macOS Ventura, my Emacs 28.2 installation throws the error message image-type: Invalid image type ‘svg’ at the startup of Emacs. M-: (image-type-available-p 'svg) RET returns t. Might someone know why this error occurs and how to…
pahohu
  • 191
  • 1
  • 3
19
votes
3 answers

paste html into org mode

Is there any easy way to copy/paste text from a browser window into an org file, automatically converting links into [[][]] org-mode links? thanks!
laxxy
  • 335
  • 2
  • 6