summaryrefslogtreecommitdiff
path: root/dotfiles-darwin/emacs/init.el
blob: a8c0ab2aac20de4501ae08448dd5d82c0fffbad1 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
;; General Configuration

(setopt mac-right-command-modifier 'meta
        mac-right-option-modifier 'none)

(when (executable-find "gls")
  (setq insert-directory-program "gls"))


;; Theme Management

(when (or window-system (daemonp))
  (my/with-add-hook 'after-init-hook
    (when my/day-theme (load-theme my/day-theme :no-confirm :no-enable))
    (when my/night-theme (load-theme my/night-theme :no-confirm :no-enable))
    (run-at-time nil (* 15 60) #'my/maybe-switch-theme my/day-theme
                 my/night-theme #'my/macos-dark-p)))