Hot answers tagged

5

If you ever want to add shortcuts functionality where you have control over the exact behavior, it's worth learning a little emacs-lisp. This kind of functionality is trivial to write. (global-set-key (kbd "<f12>") (lambda () (interactive) ;; Keep cursor motion within this block (don't move the users cursor). (save-excursion ...


2

I think you're looking for which-function-mode (which is indeed a standard feature).


2

I got the solution from gitter.im. Setting the below in .spacemacs file worked (setq lsp-enable-links nil)


2

Hmm, the Org documentation isn't very clear on the intended behavior here. I'm looking at the Results of Evalution page. But the workhorse function org-babel-eval is clear in its docstring that results only come back if the command succeeds. If the command fails, stdout is not returned and instead stderr is displayed in an error buffer. org-babel-eval ...


2

Thanks to f-sasa, I was able to write my own yasnippet file in order to construct the include guard. With the help of this yasnippet example and also this thread about getting the projectile file path : # key: include_guard # name: C++ auto header include guard in project # -- #ifndef ${1:`(upcase (concat (projectile-project-...


1

After ignoring the issue and just working on my project I realized that it must be part of the c++ layer. The solution for me is: You need to install additional fonts. What works, is installing all the fonts in the github repo of all-the-icons.


1

Emacs comes with some preconfigured C/C++ Styles. You can change the indentation style of the current buffer with C-c . When you have chosen a style and only want to temporary/test adjust a few offsets C-c C-o helps. Emacs indentation styles can be modified very fine grained. You can also set a default style by changing the alist c-default-style Given the ...


1

I recently experienced the same problem while editing Haskell and Typescript code, so I don't think irony-mode is at fault here. According to the documentation, I understand this is an expected behavior : By default Flycheck shows the error messages in the minibuffer or in a separate buffer if the minibuffer is too small to hold the whole error ...


1

Arguments are specified with :arguments instead of :args like the VSCode configuration. Reference: https://github.com/emacs-lsp/dap-mode/issues/247


1

Sorry that I didn't see this earlier. This should only happen in older hide-ifdef-mode in Emacs v24 or earlier. For any Emacs version newer than 25.1 (released 2016/09/17), the aforementioned Hide If Def that I rewrote is built-in and replace the old implementation, which did have the problem of not being able to evaluate preprocessor macros properly. In ...


1

Adding this to my init.el gives fairly good syntax highlighting for function calls and operators, it doesn't handle members though. ;; C-Like (dolist (mode-iter '(c-mode c++-mode glsl-mode java-mode javascript-mode rust-mode)) (font-lock-add-keywords mode-iter '(("\\([~^&\|!<>=,.\\+*/%-]\\)" 0 'font-lock-operator-face keep))) (font-...


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