New answers tagged

0

You could do this -- essentially the same as @lawlist's comment: (add-hook 'c-mode-common-hook 'my-c-mode-common-hook) (defun my-c-mode-common-hook () "Custom behaviours for `c-mode-common-hook'." (when (boundp 'whitespace-style) (setq-local whitespace-style (remq 'tabs whitespace-style)))) I constrain the indentation only to the Kernel code ...


0

working (setq ido-default-file-method 'selected-window) not working (setq ido-default-buffer-method 'selected-window) thanks to this link, but they point to the wrong solution works in selfcompiled [1] GNU Emacs 26.3 (build 1, x86_64-pc-linux-gnu, GTK+ Version 3.24.5) of 2019-10-20 [1] sudo apt build-dep emacs git clone git://git.sv.gnu.org/emacs.git ...


1

If we type C-h m in an *Ibuffer* buffer, we see that there is more than one way to select/open a buffer. When I place my cursor on a file in an *Ibuffer* buffer and type C-h k and then press the enter key, I get a *Help* buffer that describes the function ibuffer-visit-buffer. If I were type type M-x find-function RET ibuffer-visit-buffer RET, then I could ...


3

Use cond to bind either the buffer provided or the current buffer to my-source-buffer. No need for the extra line below. As there is actually only one condition an if statement would probably serve you better. For the interactive line: Don't include the buffer variable. See Using-Interactive. (boundp 'buffer) also returns t if buffer is nil as the symbol ...


Top 50 recent answers are included