diff --git a/bundle/bundle--defaults.el b/bundle/bundle--defaults.el index 39d3d01b..b3ef5ecb 100644 --- a/bundle/bundle--defaults.el +++ b/bundle/bundle--defaults.el @@ -118,3 +118,9 @@ was created from a Texinfo file generated by Docutils or Sphinx." (global-set-key (kbd "M-o") 'ace-window) (global-set-key (kbd "M-[") 'tab-bar-history-back) (global-set-key (kbd "M-]") 'tab-bar-history-forward) + +(add-hook 'diary-display-hook 'fancy-diary-display) +(add-hook 'today-visible-calendar-hook 'calendar-mark-today) +(add-hook 'write-file-hooks 'delete-trailing-whitespace) +(add-hook 'diary-list-entries-hook 'diary-include-other-diary-files) +(add-hook 'diary-mark-entries-hook 'diary-mark-included-diary-files) diff --git a/bundle/bundle--hooks.el b/bundle/bundle--hooks.el index ca01594a..e69de29b 100644 --- a/bundle/bundle--hooks.el +++ b/bundle/bundle--hooks.el @@ -1,10 +0,0 @@ -(add-hook 'diary-display-hook 'fancy-diary-display) -(add-hook 'today-visible-calendar-hook 'calendar-mark-today) -(add-hook 'write-file-hooks 'delete-trailing-whitespace) -(add-hook 'diary-list-entries-hook 'diary-include-other-diary-files) -(add-hook 'diary-mark-entries-hook 'diary-mark-included-diary-files) -(add-hook 'newsticker-mode-hook 'imenu-add-menubar-index) -(if (display-graphic-p) - (add-hook 'after-init-hook (lambda () - (org-agenda-list) - (me/split-h3)))) diff --git a/bundle/bundle--lists.el b/bundle/bundle--lists.el index c73fa651..c9716112 100644 --- a/bundle/bundle--lists.el +++ b/bundle/bundle--lists.el @@ -4,4 +4,3 @@ (add-to-list 'auto-mode-alist '("\\.cl$" . lisp-mode)) (add-to-list 'auto-mode-alist '("\\.epub\\'" . nov-mode)) (add-to-list 'auto-mode-alist '("\\.[Cc][Ss][Vv]\\'" . csv-mode)) -(add-to-list 'slime-contribs 'slime-autodoc) diff --git a/init.el b/init.el index d8466246..4d0a5d32 100755 --- a/init.el +++ b/init.el @@ -7,5 +7,8 @@ (load "bundle--holidays") (load "bundle--latex") (load "bundle--mk") -(load "bundle--hooks") (load "bundle--lists") +(if (display-graphic-p) + (add-hook 'after-init-hook (lambda () + (org-agenda-list) + (me/split-h3))))