From 5cca3cbe1a8aac39f91e2da9689c34d87b86edda Mon Sep 17 00:00:00 2001 From: mattkae Date: Fri, 7 Jul 2023 08:16:21 -0400 Subject: Using a light theme with some other minor improvements to web specifically --- lisp/general.el | 22 +++++++++++++++++++--- 1 file changed, 19 insertions(+), 3 deletions(-) (limited to 'lisp/general.el') diff --git a/lisp/general.el b/lisp/general.el index 5173070..3bf1072 100644 --- a/lisp/general.el +++ b/lisp/general.el @@ -121,6 +121,23 @@ completion-category-defaults nil completion-category-overrides '((file (styles partial-completion))))) +;; Enable rich annotations using the Marginalia package +(use-package marginalia + :ensure t + ;; Bind `marginalia-cycle' locally in the minibuffer. To make the binding + ;; available in the *Completions* buffer, add it to the + ;; `completion-list-mode-map'. + :bind (:map minibuffer-local-map + ("M-A" . marginalia-cycle)) + + ;; The :init section is always executed. + :init + + ;; Marginalia must be actived in the :init section of use-package such that + ;; the mode gets enabled right away. Note that this forces loading the + ;; package. + (marginalia-mode)) + (use-package rg :ensure t) @@ -248,9 +265,8 @@ ;(neotree-show) ;(neotree-refresh) (other-window -1)))))) -(bind-key* (kbd "M-r") 'my-rename-file) +(bind-key* (kbd "C-c f r") 'my-rename-file) -;; Company mode for code completion (use-package company :ensure t :defer t @@ -259,7 +275,7 @@ (setq company-idle-delay 0.1 company-minimum-prefix-length 2 company-tooltip-limit 10 - company-backends '((company-capf company-gtags company-elisp company-css company-dabbrev)) + company-backends '((company-capf company-gtags company-elisp company-css company-dabbrev company-nxml)) ) ) -- cgit v1.2.1