diff --git a/init.el b/init.el index 11a7ac4..dde31a3 100644 --- a/init.el +++ b/init.el @@ -381,34 +381,20 @@ Try `magit-clone-default-directory' if available, fall back to "~/Projects/"))) (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 calendar-mark-holidays-flag t calendar-mark-diary-entries-flag nil calendar-view-holidays-initially-flag nil calendar-view-diary-initially-flag nil) -(setq appt-display-diary nil ; Don't display diary on startup - appt-display-format 'echo - appt-display-interval 5 - appt-message-warning-time 15) -(appt-activate +1) +(use-package appt + :custom + (appt-display-diary nil) + (appt-display-format 'echo) + (appt-display-interval 5) + (appt-message-warning-time 15) + :init + (appt-activate +1)) (with-eval-after-load 'org (add-hook 'org-agenda-mode-hook #'org-agenda-to-appt))