aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGuangxiong Lin <[email protected]>2022-06-28 23:21:23 +0800
committerGuangxiong Lin <[email protected]>2022-06-28 23:21:23 +0800
commitf3640ba63d39d15f220bfc92e28bb3bec1955d7b (patch)
treedc7f4bfee135e680e8879ea3d6e7cfbe00577a1d
parentb5d772f01e410d4fe0dcdc661c958657fbf0ca28 (diff)
downloaddotfiles-f3640ba63d39d15f220bfc92e28bb3bec1955d7b.tar.gz
dotfiles-f3640ba63d39d15f220bfc92e28bb3bec1955d7b.tar.bz2
dotfiles-f3640ba63d39d15f220bfc92e28bb3bec1955d7b.zip
Update emacs config
-rw-r--r--.emacs.d/lisp/init-appearance.el6
-rw-r--r--.emacs.d/lisp/init-misc.el7
-rw-r--r--.emacs.d/lisp/init-org-agenda.el3
3 files changed, 9 insertions, 7 deletions
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)