- Replace `SPC h h` and `SPC h H` for `SPC h i` and `SPC h I`
- Replace `SPC r` prefix for `SPC x`
- Replace `SPC x SPC` for `SPC x r`
- Sort key bindings alphabetically
Originally `load-ess-on-demand` used `use-package` for the purposes of
actually loading `ess-site` and related elisp for dealing with R. But
since `use-package` doesn't return true or false when a package is
actually successfully loaded anymore, and the semantics of how it will
work aren't precisely clear, it makes sense to use `require` here
instead.
(defun load-ess-on-demand ()
(interactive)
(-all? '---truthy? (list
(require 'ess-site)
(require 'ess-R-object-popup)
(require 'ess-R-data-view))))
All the normal hooks setup by `use-package` will work as normal. I
actually don't see a reason we should use `use-package` instead of
`require` in this specific instance. Since `use-package` often defers
loading packages, it's arguably clearer to use `require` in this
particular instance.
With current configuration, .h file is only associated with c++-mode
only when cc-mode is loaded. So, when a .h file is opened the first
time, it is opened and is applied with c-mode. Only the 2nd time then
c++-mode is properly used.
- ggtags eldoc works only if we enable ggtags-mode.
- For that reason, move the code that enable eldoc into its own
function.
- Also enable gtags for some other modes that have no layer.
Make this clear in the documentation. Otherwise, the user will see the following periodically in the Emacs status line:
```
(file-error Searching for program no such file or directory gocode)
```
- Explicitly load Semantic. Currently is loaded only when Srefactor is
loaded, which is not good for other packages that depends on
Semantic but outside of C/C++, i.e. Python.
- Enable evil-emacs-state in Srefactor UI menu, since currently Evil key
mapping override the key mapping of the menu. Vim key bindings are
already supported upstream, with j,k,/ and ? which is good enough to
navigate the menu.
`:A` command switches between implemantation and test. For eample, in
Rails in can be used to quickly switch between controller and its
specs. Should work in other Rake projects as well.