Skip to main content
Share Your Experience: Take the 2024 Developer Survey
5 votes
Accepted

Is there more than mode line (and header line)?

In general, the fact that every window has only one mode-line is probably difficult to change (would require changes in the C code). Similarly, adding something below the echo-area is going to ...
Stefan's user avatar
  • 26.5k
5 votes
Accepted

local-map in header line

A click on the mode-line does not generate the event sequence [mouse-1] but [mode-line mouse-1] and similarly a click on the header line generates the sequence [header-line mouse-1], so you need to ...
Stefan's user avatar
  • 26.5k
5 votes
Accepted

How to search for headings all the way to the root heading (and preferably file name)

If you have ivy installed you can use either counsel-org-goto (current buffer only) or counsel-org-goto-all (all currently opened org buffers). Both show the outline path for each heading and ...
Hubisan's user avatar
  • 1,735
4 votes

Randomize headers in Org mode

I found the answer here. All I had to do was creating a function and call it once I got into org-sort f(function).
stacko's user avatar
  • 1,597
3 votes
Accepted

How to hide header line in C++ mode?

You are seeing the header line of semantic-stickyfunc-mode. There are essentially two ways to switch it on/off. You can globally switch it on/off by customizing global-semantic-stickyfunc-mode. The ...
Tobias's user avatar
  • 33.2k
3 votes
Accepted

Does this have a name?

Yes, it's the header line. You can customize its appearance using M-x customize-face header-line. See also the Elisp manual, node Header Lines.
Drew's user avatar
  • 77.9k
3 votes

emacs auto-complete-c-headers and closing brackets

I'm not sure how you would accomplish this with auto-complete but I do know that you can do all of this and more with company-mode, company-irony, company-irony-c-headers, and irony. You can find all ...
Libre Arch's user avatar
3 votes
Accepted

Why does my latex src code block ignore exports header arguments

Turns out I carelessly set the variable (setq org-export-babel-evaluate nil) which according to the documentation disregards all header arguments: Switch controlling code evaluation during ...
Sparx's user avatar
  • 1,121
2 votes
Accepted

What causes these extra spaces in front of the package menu header?

The 2-space padding is hard implemented as (setq tabulated-list-padding 2) in package-menu-mode. The documentation string of tabulated-list-padding says: Documentation: Number of characters ...
Tobias's user avatar
  • 33.2k
2 votes

Change mode-line size without changing header line

I finally found it; doing an apropos of header-line and searching for faces put me on the right track. For example: (set-face-attribute 'mode-line nil :height 100) (set-face-attribute 'header-line ...
YuppieNetworking's user avatar
2 votes
Accepted

force-window-update vs redisplay

(force-mode-line-update) or all with the optional t: "Force redisplay of the current buffer’s mode line and header line. With optional non-nil ALL, force redisplay of all mode lines and header ...
lawlist's user avatar
  • 19.2k
2 votes
Accepted

Develop headline to show supplementary information

Emacs has support for a header line which works pretty much like the mode line, but at the top of the buffer. See variable header-line-format, which can be configured in the same way as mode-line-...
glucas's user avatar
  • 20.6k
2 votes
Accepted

How to divide too long header-arguments of src-block into multiple lines?

I just found out the existence of :header-args+:. (from another question). So following works: * method 3 :PROPERTIES: :header-args: :var table1=/tmp/file1.org:table_example_1 :header-args+: :var ...
Garid's user avatar
  • 641
1 vote

Display buffer name in `header-line`, but non-truncated

Try this: (setq header-line-format '("%e" mode-line-buffer-identification)) or this, if you do want to limit the number of chars by truncating the buffer name to, say the first 7 chars: (...
Drew's user avatar
  • 77.9k
1 vote
Accepted

A way to pin a header line when scrolling?

You can simply set the header-line-format variable to your preferred format. The header line uses the same format as the mode line, so that it could be a simple string if you prefer. As you are ...
dalanicolai's user avatar
  • 7,855
1 vote
Accepted

which-function-mode only in python buffers

which-func[tion]-mode does support this. (setq which-func-modes '(python-mode)) (which-func-mode 1) FYI you would have found this quickly with: M-x customize-group RET which-func RET
phils's user avatar
  • 51.5k
1 vote
Accepted

How can I disable lsp-headerline?

I removed lsp-mode package and reinstaled, after that I can use (setq lsp-headerline-breadcrumb-enable nil) and everything works fine now, thanks to Lorem Ipsum for the help. (use-package lsp-mode :...
Paolo Donato Navarro's user avatar
1 vote

How can I disable lsp-headerline?

There appears to be a bug in lsp-mode which causes lsp-headerline-breadcrumb-enable to not work as expected. I believe the following workaround should result in the desired behavior (no breadcrumb): (...
Lorem Ipsum's user avatar
  • 4,517
1 vote
Accepted

How to use header-args variables to fill cell values of a table

Assuming you meant to define header-args in properties, as I suggested in a comment, you could name the code block with #+name: my-name e.g. then in order to use the value of the code block, you can ...
NickD's user avatar
  • 30.5k
1 vote

Undecorated Frame with header line as titlebar

As far as I know, a header-line, like a mode-line, is specific to a particular buffer, which means a window showing that buffer. So I believe the answer is that you can't do what you want, without ...
Drew's user avatar
  • 77.9k
1 vote

How to search for headings all the way to the root heading (and preferably file name)

For Doom Emacs (with vertico) users there is consult-org-heading command and it's mapped to SPC m . by default. Works in current buffer only. Search with any word order:
baratali's user avatar
  • 111
1 vote

xpm: Change displayed image on mouse-over in `header-line-format`

If you can use unicode characters and mouse clicks, here is another approach. (require 's) (setq header-line-format (propertize "♥ ...
John Kitchin's user avatar
  • 11.9k
1 vote

xpm: Change displayed image on mouse-over in `header-line-format`

Here is a new idea. It seems to work for me, but it relies on the mouse-position and detecting when it goes away from the header-mode-line. If you mouse over to change it, but slide right then down it ...
John Kitchin's user avatar
  • 11.9k
1 vote

How can I access the :file src header argument inside the src block

You could wrap the output with next code and create file and link after block #+name: attr_wrap #+begin_src sh :session :var file=/tmp/py87133eo.png echo "$data" > /tmp/$file ln -s /tmp/$file /...
Konstantin Morenko's user avatar
1 vote

Draw a line between the header line and the text area

Here is one idea using underline and a filler that is underlined. You can add :eval so that the line length updates as the window width changes. (defface my-regular-underscore-face '((t (:...
lawlist's user avatar
  • 19.2k
1 vote

Randomize headers in Org mode

I had to combine the other two answers here to get this to work, so here's a complete answer with explanation and code from the linked 2011 email. We will use org-sort (C-c ^), which can use an ...
Niles's user avatar
  • 111
1 vote

Randomize headers in Org mode

In emacs 28 it seems you need to enter two functions. The first one is used to extract keys from entries. Theses keys will be assigned to each entry. Then you need to specify a function to compare the ...
Théo Tyburn's user avatar
1 vote

How can I use the PROPERTIES drawer with a TAGS property and asign multiple values to it

Try *-multivalued-property in org mode Property API. More here.
midas0441's user avatar
  • 304

Only top scored, non community-wiki answers of a minimum length are eligible