From 7cf1ccce70764de672177425b5e359c24f294e32 Mon Sep 17 00:00:00 2001 From: gxlin Date: Fri, 25 Jun 2021 17:22:08 +0800 Subject: Emacs and offlineimap config --- .emacs.d/init-mu4e.el | Bin 1996 -> 2084 bytes .emacs.d/init.el | 5 +++++ .emacs.d/modes/init-org-mode.el | 1 + .offlineimap.py | 4 ++++ .offlineimaprc | Bin 995 -> 1063 bytes 5 files changed, 10 insertions(+) diff --git a/.emacs.d/init-mu4e.el b/.emacs.d/init-mu4e.el index 02835a5..a77568b 100644 Binary files a/.emacs.d/init-mu4e.el and b/.emacs.d/init-mu4e.el differ diff --git a/.emacs.d/init.el b/.emacs.d/init.el index bac98b0..669e93a 100644 --- a/.emacs.d/init.el +++ b/.emacs.d/init.el @@ -106,3 +106,8 @@ :hook ((go-mode . (lambda () (setq tab-width 4))))) (use-package avy) + +(use-package dashboard + :ensure t + :config + (dashboard-setup-startup-hook)) diff --git a/.emacs.d/modes/init-org-mode.el b/.emacs.d/modes/init-org-mode.el index 31cf3e2..1bbf17d 100644 --- a/.emacs.d/modes/init-org-mode.el +++ b/.emacs.d/modes/init-org-mode.el @@ -27,6 +27,7 @@ (evil-define-key 'normal org-mode-map (kbd "TAB") 'org-cycle (kbd "RET") 'org-open-at-point + (kbd "ot") 'org-todo (kbd "os") 'org-schedule (kbd "od") 'org-deadline) diff --git a/.offlineimap.py b/.offlineimap.py index e868861..c304ef4 100644 --- a/.offlineimap.py +++ b/.offlineimap.py @@ -7,3 +7,7 @@ def gmail_nametrans(foldername): re.sub('starred', 'flagged', re.sub('bin', 'trash', re.sub(' ', '_', foldername.lower())))))) + +def gmail_folderfilter(foldername): + return foldername in ('INBOX', '[Gmail]/Starred', + '[Gmail]/Drafts', '[Gmail]/All Mail') diff --git a/.offlineimaprc b/.offlineimaprc index dc1f623..87cfe5a 100644 Binary files a/.offlineimaprc and b/.offlineimaprc differ -- cgit v1.2.3