mirror of
https://github.com/librephoenix/nixos-config
synced 2025-01-19 07:05:51 +05:30
Use ripgrep in emacs
This commit is contained in:
parent
23a8f9ad3a
commit
e97051872a
|
@ -204,6 +204,10 @@
|
||||||
;; For camelCase
|
;; For camelCase
|
||||||
(global-subword-mode 1)
|
(global-subword-mode 1)
|
||||||
|
|
||||||
|
;; ripgrep as grep
|
||||||
|
(setq grep-command "rg -nS --no-heading "
|
||||||
|
grep-use-null-device nil)
|
||||||
|
|
||||||
;; Mini-frames ;; cool but kinda suboptimal atm
|
;; Mini-frames ;; cool but kinda suboptimal atm
|
||||||
;(add-load-path! "~/.emacs.d/mini-frame")
|
;(add-load-path! "~/.emacs.d/mini-frame")
|
||||||
;(require 'mini-frame)
|
;(require 'mini-frame)
|
||||||
|
@ -699,6 +703,8 @@ If the path from LINK does not exist, nil is returned."
|
||||||
org-roam-db-choice)
|
org-roam-db-choice)
|
||||||
)
|
)
|
||||||
|
|
||||||
|
(setq org-roam-list-files-commands '(rg))
|
||||||
|
|
||||||
(setq full-org-roam-db-list nil)
|
(setq full-org-roam-db-list nil)
|
||||||
|
|
||||||
(setq full-org-roam-db-list (directory-files "~/Org" t "\\.[p,s]$"))
|
(setq full-org-roam-db-list (directory-files "~/Org" t "\\.[p,s]$"))
|
||||||
|
|
|
@ -267,6 +267,10 @@ Doom Emacs is traditionally installed by cloning the repository ([[https://githu
|
||||||
;; For camelCase
|
;; For camelCase
|
||||||
(global-subword-mode 1)
|
(global-subword-mode 1)
|
||||||
|
|
||||||
|
;; ripgrep as grep
|
||||||
|
(setq grep-command "rg -nS --no-heading "
|
||||||
|
grep-use-null-device nil)
|
||||||
|
|
||||||
;; Mini-frames ;; cool but kinda suboptimal atm
|
;; Mini-frames ;; cool but kinda suboptimal atm
|
||||||
;(add-load-path! "~/.emacs.d/mini-frame")
|
;(add-load-path! "~/.emacs.d/mini-frame")
|
||||||
;(require 'mini-frame)
|
;(require 'mini-frame)
|
||||||
|
@ -835,6 +839,8 @@ exit
|
||||||
org-roam-db-choice)
|
org-roam-db-choice)
|
||||||
)
|
)
|
||||||
|
|
||||||
|
(setq org-roam-list-files-commands '(rg))
|
||||||
|
|
||||||
#+END_SRC
|
#+END_SRC
|
||||||
*** Multi Org Roam Configuration
|
*** Multi Org Roam Configuration
|
||||||
#+BEGIN_SRC emacs-lisp :tangle config.el
|
#+BEGIN_SRC emacs-lisp :tangle config.el
|
||||||
|
|
Loading…
Reference in a new issue