What is the name of the face that appears in this list of company completions?
If I have company-mode enabled, and I type in company like this.(company)I then see a list of completions that I can select. My question is - apart from the currently selected item, the word company is...
View ArticleCheck if there are marked files in dired buffer
How can I check, with a function, if there are marked files in a dired buffer?Edit. The issue with dired-get-marked-files is that if the user moves the cursor on a "current file name" the function does...
View ArticleWhich commands/functions/processes are run on keyboard input S-?
Emacs help shown using C-h k S-<right> states only:<right> (translated from S-<right>) runs the command right-char (foundin global-map), which is an interactive byte-compiled Lisp...
View ArticleHow to close help buffer without moving to it?
I often use Emacs' help buffers, via e.g. C-h k.Buffer *Help* is displayed in another window, and that window is not selected. In order to close the *Help* buffer, I need to switch windows via C-x o...
View ArticleHow can I find the face of the items in the headeline in lsp-mode?
Re-edited the answer for clarityTypically I would put my cursor over the text, and call M-x describe-face, but I can't do that with the headerline.In the above screenshot, I want to change the...
View ArticleInconsistency between read-key and read-key-sequence-vector w.r.t....
While working with read-key-sequence-vector and read-key, I found that the former applies the local-function-key-map translations in a conditional manner but the latter does not. I am using Emacs 28.1...
View ArticleHow do I describe C-z?
I tried to bind a key using a prefix-key of C-z, but Emacs told me: Key sequence C-z c starts with non-prefix key C-z. I guess this means that C-z is already bound to something.So I tried to do M-x...
View ArticleHow can I start learning Emacs Lisp?
Background:I'm mostly a vi user and am converting to Emacs.Past the basics and now use it for writing code in C and some Python with plans to do an R conversion too.I wrote (Common) LISP for years over...
View ArticleDefault yank keyboard shortcut does not work
I am using Emacs 27.1 (GNU Emacs 27.1 (build 1, x86_64-pc-linux-gnu, GTK+ Version 3.24.24, cairo version 1.16.0) of 2021-03-28, modified by Debian).When I hover the mouse pointer over the "copy" button...
View ArticleHelm see options for opening a file
I'm new to emacs and using Spacemacs Doom. I pressed SPCfr t of find recent files and I used the arrow keys to select the one I want. Now I want to see what options I have for opening it (open in...
View ArticleHow can I discover new commands using M-x (or similar command) semantically?
Currently, I'm in Doom and I'm pressing M-x which does a nice fuzzy search for commands.The problem with this is it has no synonym detection. So if I'm trying to collapse something and type M-x...
View ArticleMoving from legacy function global-set-key to keymap-global-set
The documentation in the release of GNU Emacs 29.0.50 states that global-set-key is a legacy function; instructing people that the recommended function to use is keymap-global-set.What would be the...
View ArticleHow to get `C-h m` to show its output in the same window?
When I type C-h m in dired mode, it opens in a different window. I'd like it to open in the same. How can I do this?In the future, is there an internal reference for questions like this that is quick...
View ArticleHow can I view the history of what variable I've looked up before with...
Whenever I call(describe-variable), there is no history of what variables I've recently viewed. Is there a way to enable it to have some kind of history?;)
View ArticleWhy does an unset key binding still show up in the Help menu buffer?
What I've done is that I wanted to slim down on the amount of bindings I had in a major mode (in this case CC-Mode). I had started with CC-Mode's c-set-offset and it did work with the solution I used...
View ArticleWhere to find all elisp functions?
I’m working on this tutorial and it uses functions such as,search-forward, goto-char, save-excursion etc.Is there a place where all functions are listed?If I search for search-forward I find this...
View ArticleA better where-is command?
I'm trying to setup a way to find keys I want to use but keep forgetting.(I know there is where-is (C-w) and describe-binds, describe-mode. )I want the following,initiate a command to search for keys...
View ArticleConfusion about key definition for SPC
Yesterday, I tried to do something like(define-keymap " " #'foo)and I got the error message that " " is not a valid key definition. OK, key-valid-p also says so and I figured out I should have...
View ArticleHow to see if a keybinding is used in any mode? [duplicate]
For example, I once set <C-j> as <C-x>, only to find out <C-j> is used for org-forward-heading-same-level in org-mode.I know <C-h> k shows a keybinding's usage in current mode....
View ArticleFinding emacs release notes
What's the best source of emacs release notes - especially for reading prior to installing an update?I searched Google for "emacs release notes". There are some posts about specific releases (and some,...
View Article