commit - 896d94b859df302c21967131f606607d678661af
commit + 10233ddcfe886c7a1b7622277cd8523b7b77ab72
blob - de8c2eba73cbe665a20c1363cc3b289b8c783cee
blob + d938e849bec4f0b3393fef6efb94fb438edf1594
--- init.el
+++ init.el
;; -*- lexical-binding: t; -*-
;;; My emacs config
+(require 'xdg)
+(setq lh/dir-data-home
+ (expand-file-name
+ (cond ((eq system-type 'gnu/linux) (or (xdg-data-home) "~/.local/share"))
+ ((eq system-type 'windows-nt) (getenv "APPDATA")))))
+
(let ((lisp-dir (expand-file-name "lisp" user-emacs-directory)))
(make-directory lisp-dir t)
(add-to-list 'load-path lisp-dir))
(add-hook 'lisp-mode-hook 'paredit-mode)
(add-hook 'emacs-lisp-mode-hook 'paredit-mode)
+;;;; elfeed
+(let ((elfeed-feeds-file (expand-file-name "feeds.el" user-emacs-directory))
+ (elfeed-data-dir (expand-file-name "elfeed" lh/dir-data-home)))
+ (when (file-exists-p elfeed-feeds-file)
+ (load elfeed-feeds-file))
+ (make-directory elfeed-data-dir t)
+ (setopt elfeed-db-directory elfeed-data-dir))
+
+;;;; notmuch
+(setopt notmuch-archive-tags '("-inbox" "-unread")
+ notmuch-poll-script "notmuch-poll") ; TODO: deprecated, use hooks
+
;;;; Misc
(setopt focus-follows-mouse t
frame-resize-pixelwise t