Remove project shortcut binds

Move appt settings into use-package block
This commit is contained in:
Evie Litherland-Smith 2024-04-19 09:58:12 +01:00
parent bb23e75c7a
commit 0e8567ff5d

30
init.el
View file

@ -381,34 +381,20 @@ Try `magit-clone-default-directory' if available, fall back to
"~/Projects/"))) "~/Projects/")))
(keymap-global-set "C-c w p" #'my/open-projects-directory) (keymap-global-set "C-c w p" #'my/open-projects-directory)
(defun my/open-nixos-project ()
"Open NixOS config project."
(interactive)
(require 'project)
(let ((nixos "/etc/nixos/"))
(if (file-directory-p nixos)
(project-switch-project nixos)
(warn (concat nixos " not found")))))
(keymap-global-set "C-c p n" #'my/open-nixos-project)
(defun my/open-emacs-project ()
"Open Emacs config project."
(interactive)
(require 'project)
(project-switch-project user-emacs-directory))
(keymap-global-set "C-c p e" #'my/open-emacs-project)
(setopt calendar-date-style 'iso (setopt calendar-date-style 'iso
calendar-mark-holidays-flag t calendar-mark-holidays-flag t
calendar-mark-diary-entries-flag nil calendar-mark-diary-entries-flag nil
calendar-view-holidays-initially-flag nil calendar-view-holidays-initially-flag nil
calendar-view-diary-initially-flag nil) calendar-view-diary-initially-flag nil)
(setq appt-display-diary nil ; Don't display diary on startup (use-package appt
appt-display-format 'echo :custom
appt-display-interval 5 (appt-display-diary nil)
appt-message-warning-time 15) (appt-display-format 'echo)
(appt-activate +1) (appt-display-interval 5)
(appt-message-warning-time 15)
:init
(appt-activate +1))
(with-eval-after-load 'org (with-eval-after-load 'org
(add-hook 'org-agenda-mode-hook #'org-agenda-to-appt)) (add-hook 'org-agenda-mode-hook #'org-agenda-to-appt))