Various fixes

This commit is contained in:
Alexander Rosenberg 2023-10-30 01:34:55 -07:00
parent c26beed6e9
commit e01ea65f72
Signed by: Zander671
GPG Key ID: 5FD0394ADBD72730

View File

@ -20,9 +20,9 @@
;; use-package ;; use-package
(eval-when-compile (eval-when-compile
(setq use-package-always-ensure t (setq use-package-always-ensure t)
package-user-dir "~/.emacs.d/var/elpa")
(require 'use-package)) (require 'use-package))
(setq package-user-dir "~/.emacs.d/var/elpa")
;; no-littering ;; no-littering
(use-package no-littering (use-package no-littering
@ -156,7 +156,8 @@
(use-package recentf (use-package recentf
:init :init
(setq recentf-exclude '("^/tmp/.*" (setq recentf-exclude '("^/tmp/.*"
"^~/.mail/[^/]/Drafts/.+")) "^~/.mail/[^/]/Drafts/.*"
(format "^%svar/elpa/.*" user-emacs-directory)))
:bind ("C-c r" . recentf) :bind ("C-c r" . recentf)
:config :config
(recentf-mode 1)) (recentf-mode 1))
@ -189,7 +190,7 @@
:config :config
(evil-define-key 'operator evil-surround-mode-map (evil-define-key 'operator evil-surround-mode-map
"z" #'evil-surround-edit "z" #'evil-surround-edit
"Z" #'evil-Sunrround-edit) "Z" #'evil-Surround-edit)
(evil-define-key 'visual evil-surround-mode-map (evil-define-key 'visual evil-surround-mode-map
"gz" #'evil-surround-region "gz" #'evil-surround-region
"gZ" #'evil-Surround-region) "gZ" #'evil-Surround-region)