Skip to content

Commit

Permalink
Add rg and improve theme for match highlight.
Browse files Browse the repository at this point in the history
  • Loading branch information
regob authored and Rego A Borsodi committed Dec 4, 2024
1 parent 8a623c4 commit 258e94f
Show file tree
Hide file tree
Showing 2 changed files with 29 additions and 2 deletions.
15 changes: 15 additions & 0 deletions lisp/init-appearance.el
Original file line number Diff line number Diff line change
Expand Up @@ -2,14 +2,29 @@
;;; Commentary:
;;; Code:

;; ----------------------------------------------------------------------------
;; Theme setup
;; ----------------------------------------------------------------------------

(setq custom-safe-themes t)

(use-package gruvbox-theme
:ensure (:files ("*.el") :autoloads nil)
:init
(add-hook 'elpaca-after-init-hook #'(lambda () (load-theme 'gruvbox t)))
:config
;; Modify some faces I don't like in the gruvbox theme
(custom-set-faces
;; matches are too bright by default (gray on blue)
'(match ((t (:background "#554444" :foreground "#999999")))))
)


;; ----------------------------------------------------------------------------
;; Improve some visuals
;; ----------------------------------------------------------------------------


;; Remove toolbars, menu and scrollbars
(menu-bar-mode -1)
(tool-bar-mode -1)
Expand Down
16 changes: 14 additions & 2 deletions lisp/init-utils.el
Original file line number Diff line number Diff line change
Expand Up @@ -62,9 +62,21 @@
(global-set-key (kbd "C-;") 'avy-goto-char-timer)
)

;; =========================
;; ----------------------------------------------------------------------------
;; Searching
;; ----------------------------------------------------------------------------

;; Rg works best for me (deadgrep is another option)
(use-package rg
:ensure (:source "MELPA")
:config
(rg-enable-menu)
)

;; ----------------------------------------------------------------------------
;; Misc user functions
;; =========================
;; ----------------------------------------------------------------------------


(defun rb/jump-to-init-file ()
"Open init.el in the current window."
Expand Down

0 comments on commit 258e94f

Please sign in to comment.