Most Popular

1500 questions
31
votes
4 answers

Best ways of generating UML from within Emacs

There are a bunch of integration options between Emacs and UML tools, like org-mode's plantuml embedding, a plantuml major mode etc. Of course I can try them out but I'm wondering what other people use for a UML workflow? Embedding inside another…
Mark
  • 1,429
  • 1
  • 16
  • 21
31
votes
3 answers

Reset custom variable to default value programmatically

Q: Using Elisp, how can I reset a variable to its default value without knowing what that value is? I tried to figure out how to do this by bringing up the Customize interface for a variable I set to a non-default value in my init-file and pressing…
itsjeyd
  • 14,666
  • 3
  • 59
  • 87
31
votes
6 answers

Switching between window layouts

When I configure a custom layout and then just need to temporary look into one file fullscreen and once I want that layout back - I need manually to reflow it. I would like a plugin/elisp code to save my layouts and to be able to switch between…
lukas.pukenis
  • 697
  • 1
  • 6
  • 11
31
votes
2 answers

Can functions access their name?

In C there is the magic variable __func__ that holds the current function name. In Bash, there is an array FUNCNAME holding the names of all functions in the calling stack !!! Is there a similar thing in Emacs Lisp? Or any simple way for a function…
phs
  • 1,227
  • 7
  • 13
31
votes
1 answer

In Magit, what is the difference between a 'stash' and a 'snapshot'?

The Magit user manual includes two sets of "stashing" commands: lower-case commands save a stash, and upper-case commands save a snapshot. After consulting Google and Stack Overflow and the git-stash(1) man page, I still don't know what the…
Norman Ramsey
  • 1,175
  • 7
  • 13
31
votes
4 answers

How to unhighlight symbol highlighted with highlight-symbol-at-point

highlight-symbol-at-point is really useful however I could not find an easy way to un-highlight symbols. Currently I have to call unhighlight-regexp repeatedly for each highlighted symbol. Is there a better way to: unhighlight all highlighted…
kostya
  • 513
  • 4
  • 6
31
votes
1 answer

How to use pdf-tools (pdf-view-mode) in emacs?

pdf-tools includes pdf-view-mode which offers several features not present in doc-view-mode (see end of question). Can pdf-view-mode be used as a replacement for doc-view-mode generally, or does it have to be "tool" by tool? In either case, is it…
brittAnderson
  • 729
  • 1
  • 8
  • 18
31
votes
3 answers

How can I replicate Vim's code folding?

Code folding in Emacs Sometimes I want to fold a block of text. In Vim you have easy folding without fuzz. Without to add any special characters like "markers" or specific regex like {{{. I would like to select a region and fold it, without messing…
ReneFroger
  • 3,850
  • 23
  • 66
31
votes
1 answer

How do I use nadvice?

My config is full of advice, and I keep hearing about the new shiny minimalist nadvice.el package. I've searched the manuals, and I've read the source, but I'll openly admit: I still have no idea how to actually use it. Can anyone here point me to…
PythonNut
  • 10,363
  • 2
  • 30
  • 76
31
votes
4 answers

Smooth (mouse) scroll for inline images?

I display images in-line with begin_src & result blocks. However, for large-images, when I scroll past the bottom of the image, I get a 'jerk' and the whole image is scrolled away. Similarly if I scroll up and run into an image, I get a jerk and see…
Leo Ufimtsev
  • 4,558
  • 3
  • 23
  • 46
30
votes
4 answers

org: How to sort headings by TODO and then by priority?

I often have a list like this: * Main heading ** TODO [#A] Make world better ** TODO [#B] Make Emacs better ** TODO [#B] Customize emacs ** DONE [#C] some task ** TODO [#A] Launch rocket to mars I would like to sort it according to the 'TODO'…
Leo Ufimtsev
  • 4,558
  • 3
  • 23
  • 46
30
votes
1 answer

How do I automatically load a mode for a specific set of file extensions?

I'd like to load the yaml-mode for any files named *.yml or *.yaml.
b4hand
  • 2,015
  • 1
  • 21
  • 31
30
votes
5 answers

Editing files with one-sentence-per-line

A bit of background. I’m trying to version-control my latex documents, and the effectiveness of this initiative would be greatly improved if I adopt a one-sentence-per-line approach. For instance, the following is what my documents will look…
Malabarba
  • 23,148
  • 6
  • 79
  • 164
30
votes
9 answers

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 line get really clogged, so when I vertically split…
Mark Karpov
  • 4,943
  • 1
  • 26
  • 54
30
votes
1 answer

Synchronized scrolling in two windows

Is there a way to reflect the navigation commands in the current window in another visible window. I have two related LaTeX files displayed in two windows and would like to scroll through them simultaneously to get an overview of the differences. I…
Vamsi
  • 3,956
  • 23
  • 35