In i3, whenever you switch to a new workspace, it starts with a blank
frame with default wallpaper. It would be useful when we switch
workspace, the window is reset to a default buffer so it's more obvious
for first time users and is closer to i3 or Vim's tabs. Since eyebrowse
supports this feature already, we simply set it to switch to
spacemacs/home function.
Also, eyebrowse-get becomes eyebrowse--get to express that it is now
private function. So this commit fixes it appropriately.
- 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)
```
Since helm-spacemacs//layer-action-open-file shares between first and
second actions, we always want second action to open file. For that
reason, we set helm-prefix-arg before calling the function.
- 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.
This function is making asynchronous commands fail because it tries to
add string literal to spacemacs-useful-buffers-regexp while add-to-list
only works when first argument is a symbol and the second is an
element. Otherwise, it throws this error and stop all async commands to
do any further work at this point:
if: Wrong type argument: symbolp
This commit fixes the following issues:
- Don't add spacemacs//mark-repl-as-useful to
buffer-list-update-hook. We only need this function to switch to next
or previous buffer. So, better check when and only when those commands
are actually used.
- As a result, we remove the function since it's unneeded anymore.
- Do the checking in of comint-mode in spacemacs-useful-buffer-p
function. Better do it in one place than scatter the logic in a hook
and this function.
- Change useless-buffer-p to accept an actual buffer object and check
for buffer name inside.