diff options
author | Vincent Ambo <tazjin@google.com> | 2019-12-15T22·59+0000 |
---|---|---|
committer | GitHub <noreply@github.com> | 2019-12-15T22·59+0000 |
commit | e8b184adcc56e2ce6c0cbb86d45344e4f1ac98af (patch) | |
tree | 8f9573801796c6524ad253bed9a19401b6b336e7 /tools/emacs/config/look-and-feel.el | |
parent | 00c9060c2f0ec581db8841aa34fd92c0e9953693 (diff) | |
parent | 458163910b4ab08c885e076e5f3b9ecf1b3521af (diff) |
merge(PR#11): Move bits of Emacs configuration into local packages r/156
As requested by @wpcarro, some bits of my Emacs configuration are now in separate local packages (located at `//depot/tools/emacs-pkgs/`). Specifically this change introduces: * `tools.emacs-pkgs.dottime`: A package to render time in the modeline as [dottime](https://dotti.me) * `tools.emacs-pkgs.term-switcher`: A package to quickly switch between and open new terminal instances in EXWM using ivy My Emacs configuration is updated to accomodate these refactorings.
Diffstat (limited to 'tools/emacs/config/look-and-feel.el')
-rw-r--r-- | tools/emacs/config/look-and-feel.el | 15 |
1 files changed, 0 insertions, 15 deletions
diff --git a/tools/emacs/config/look-and-feel.el b/tools/emacs/config/look-and-feel.el index 8f42133fb8a0..88cab18ed2e2 100644 --- a/tools/emacs/config/look-and-feel.el +++ b/tools/emacs/config/look-and-feel.el @@ -27,21 +27,6 @@ (font . ,font))) (set-frame-font font t t)) -;; Display modeline time in dottime (see https://dotti.me) -;; -;; This is done in a way that initially seems more complicated than -;; one would like, but this is unfortunately required due to the way -;; `format-time-string' handles timezones. -(defun format-dottime-advice (orig _ &optional _ _) - (let* ((offset-sec (car (current-time-zone))) - (offset-hours (/ offset-sec 60 60)) - (dottime (if (/= offset-hours 0) - (concat "%M-%Dt%H·%M" (format "%0+3d" offset-hours)) - "%m-%dT%H·%M"))) - (apply orig '("%m-%dT%H·%M" nil t)))) - -(advice-add 'format-time-string :around #'format-dottime-advice) - ;; Configure telephone-line (defun telephone-misc-if-last-window () "Renders the mode-line-misc-info string for display in the |