From f3640ba63d39d15f220bfc92e28bb3bec1955d7b Mon Sep 17 00:00:00 2001 From: Guangxiong Lin Date: Tue, 28 Jun 2022 23:21:23 +0800 Subject: Update emacs config --- .emacs.d/lisp/init-appearance.el | 6 +++--- .emacs.d/lisp/init-misc.el | 7 +++++-- .emacs.d/lisp/init-org-agenda.el | 3 +-- 3 files changed, 9 insertions(+), 7 deletions(-) (limited to '.emacs.d') diff --git a/.emacs.d/lisp/init-appearance.el b/.emacs.d/lisp/init-appearance.el index eac5e1e..ff848f6 100644 --- a/.emacs.d/lisp/init-appearance.el +++ b/.emacs.d/lisp/init-appearance.el @@ -1,5 +1,5 @@ (defun gx/set-appearance--linux () - (set-face-attribute 'default nil :height 130)) + (set-face-attribute 'default nil :height 120)) (defun gx/set-appearance--mac () (set-face-attribute 'default nil :height 160) @@ -16,8 +16,8 @@ (gx/set-appearance--linux)) (when *is-a-mac* (gx/set-appearance--mac))) - (when (gx/maybe-require-package 'color-theme-sanityinc-tomorrow) - (color-theme-sanityinc-tomorrow-eighties))) + (when (gx/maybe-require-package 'doom-themes) + (load-theme 'doom-one))) (add-to-list 'after-make-frame-functions #'gx/set-appearance-for-frame) diff --git a/.emacs.d/lisp/init-misc.el b/.emacs.d/lisp/init-misc.el index ed35da4..349e237 100644 --- a/.emacs.d/lisp/init-misc.el +++ b/.emacs.d/lisp/init-misc.el @@ -12,13 +12,15 @@ ;; Disable evil operation writes clipboard (setq x-select-enable-clipboard nil) +(setq inhibit-splash-screen t) + (setq backup-by-copying t delete-old-versions t kept-new-versions 10 kept-old-versions 2 version-control t - backup-directory-alist `(("." . ,(concat user-emacs-directory "backups")))) + backup-directory-alist `((".*" . ,(concat user-emacs-directory "backups")))) (setq auto-save-file-name-transforms `((".*" "~/.emacs.d/backups/" t))) @@ -48,7 +50,8 @@ ;; Show column number in modeline (column-number-mode) ;; Show the size of file in modeline - (size-indication-mode)) + (size-indication-mode) + (transient-mark-mode t)) 'append) (with-eval-after-load 'hideshow diff --git a/.emacs.d/lisp/init-org-agenda.el b/.emacs.d/lisp/init-org-agenda.el index 8bdf8d5..4f047cd 100644 --- a/.emacs.d/lisp/init-org-agenda.el +++ b/.emacs.d/lisp/init-org-agenda.el @@ -150,8 +150,7 @@ ;; (tags "PROJECT+CATEGORY=\"elephants\"") ,gx/org-agenda-block--stuck-projects ,gx/org-agenda-block--next-not-scheduled - ,gx/org-agenda-block--waiting-not-scheduled - ,gx/org-agenda-block--week-at-a-glance) + ,gx/org-agenda-block--waiting-not-scheduled) ,gx/org-agenda-block--display-settings) ("l" "Weekly Log" (,gx/org-agenda-block--weekly-log) -- cgit v1.2.3