spacemacs

Spacemacs docs: http://develop.spacemacs.org/doc/DOCUMENTATION.html http://develop.spacemacs.org/layers/+lang/clojure/README.html https://practicalli.github.io/spacemacs/
jumar 2020-10-21T07:56:26.072900Z

Whenever I try to "search project" (fulltext search via SPC /) it ignores the "hidden" files - that is file names beginning with . So e.g. I have github actions workflows in the <root>/.github/workflows directory and I can't find any thing inside those files. Is there a way to make it work?

practicalli-john 2020-10-21T08:02:24.075800Z

@jumar if you are using rg (might also work for au) as the search binary, then arguments can be added at the end. To search in hidden files for a searchpattern:

searchpattern -- --hidden

practicalli-john 2020-10-21T08:04:28.076700Z

Seems there are also these arguments... -u = don't respect .gitignore or .ignore files -uu = same as -u and show hidden files -uuu = same as -uu and search binary files The argument approach might only work if using helm

jumar 2020-10-21T08:18:50.078500Z

@jr0cket that's very helpful, thanks! Using -uu seems to be perfect although it would be even better if that was the default (can I change that?)

practicalli-john 2020-10-21T08:39:28.079800Z

ripgrep default arguments can be set using a ripgrep configuration file https://github.com/BurntSushi/ripgrep/blob/master/GUIDE.md#configuration-file

practicalli-john 2020-10-21T08:43:29.081200Z

If using helm, then you could also set helm-ag-base-command to include any default options, either in .spacemacs or using the Emacs customize command to set it

practicalli-john 2020-10-21T08:45:33.081500Z

(custom-set-variables
 '(helm-ag-base-command "rg --no-heading")
 `(helm-ag-success-exit-status '(0 2)))

practicalli-john 2020-10-21T08:45:53.081700Z

https://github.com/emacsorphanage/helm-ag#ripgrep I assume you realise that setting rg to search through hidden files (regardless of method) may slow down searches in certain directories. You may want to exclude .git directories in any config.

mathpunk 2020-10-21T17:23:44.083300Z

I'd like to remap my evil lisp state leader. The docs suggest

(evil-lisp-state-leader ", l")
but that causes
(Spacemacs) Error in dotspacemacs/user-config: Symbol's function definition is void: evil-lisp-state-leader
I'm thinking maybe I need to wrap that function in something that waits for something else to load first?

practicalli-john 2020-10-22T07:31:28.085Z

My bad, didnt read properly... Its usually add-hook or with-eval-after-load I cant actually find evil-lisp-state-leader as a variable though...

practicalli-john 2020-10-22T07:42:49.085700Z

In the /emacs.d/layers/+spacemacs/spacemacs-evil/packages.el the the lisp spate leader key is set with

(spacemacs/set-leader-keys "k" evil-lisp-state-map)
So I am guessing its something like
(with-eval-after-load 'evil-lisp-state
    (spacemacs/set-leader-keys "k" evil-lisp-state-map))

1
practicalli-john 2020-10-21T19:47:08.083400Z

You can set all the leader keys in .spacemacs, no need for your own custom configuration

practicalli-john 2020-10-21T20:09:01.083600Z

;; Major mode leader key is a shortcut key which is the equivalent of
   ;; pressing `<leader> m`. Set it to `nil` to disable it. (default ",")
   dotspacemacs-major-mode-leader-key ","