From f48806ab0d5a55ea67d41a6f0d974450a2d8ae90 Mon Sep 17 00:00:00 2001 From: dej4vu Date: Wed, 31 Jul 2024 14:02:27 +0800 Subject: [PATCH 1/3] add c and c++ lsp config --- lisp/init-lsp.el | 2 ++ 1 file changed, 2 insertions(+) diff --git a/lisp/init-lsp.el b/lisp/init-lsp.el index e92e796..f293d73 100644 --- a/lisp/init-lsp.el +++ b/lisp/init-lsp.el @@ -24,6 +24,8 @@ :hook (;; replace XXX-mode with concrete major-mode(e. g. python-mode) (go-mode . lsp-defered) (python-mode . lsp-deferred) + (c-mode . lsp-deferred) + (c++-mode . lsp-deferred) ;; if you want which-key integration (lsp-mode . lsp-enable-which-key-integration)) :bind (:map lsp-mode-map From 0f1d20d03aff4d79a368b60ca73472c2335776ae Mon Sep 17 00:00:00 2001 From: dej4vu Date: Wed, 31 Jul 2024 14:02:55 +0800 Subject: [PATCH 2/3] custom emacs --- lisp/init-custom.el | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/lisp/init-custom.el b/lisp/init-custom.el index 7f9eb0d..02daf15 100644 --- a/lisp/init-custom.el +++ b/lisp/init-custom.el @@ -63,4 +63,9 @@ (when (file-exists-p custom-file) (load-file custom-file)) +(use-package emacs + :custom + (help-window-select t "Switch to help buffers automatically") + ) + (provide 'init-custom) From bfd6544df8fc8768d3fc51fe8898d10d86250872 Mon Sep 17 00:00:00 2001 From: dej4vu Date: Wed, 31 Jul 2024 14:03:29 +0800 Subject: [PATCH 3/3] fzf-grep ingore case --- lisp/init-helm.el | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lisp/init-helm.el b/lisp/init-helm.el index 5f5c74d..bb67220 100644 --- a/lisp/init-helm.el +++ b/lisp/init-helm.el @@ -83,7 +83,7 @@ ;; command used for `fzf-grep-*` functions ;; example usage for ripgrep: ;; fzf/grep-command "rg --no-heading -nH" - fzf/grep-command "grep -nrH" + fzf/grep-command "grep -inrH" ;; If nil, the fzf buffer will appear at the top of the window fzf/position-bottom t fzf/window-height 15))