From 64f821a4cca704f2b43024c04dfa5b0e3ac10a59 Mon Sep 17 00:00:00 2001 From: Ricardo Wurmus Date: Tue, 21 Feb 2017 16:51:51 +0100 Subject: Add section "Modeline". --- init.org | 32 ++++++++++++++++++++++++++++++-- 1 file changed, 30 insertions(+), 2 deletions(-) (limited to 'init.org') diff --git a/init.org b/init.org index 516c675..0d5e3a1 100644 --- a/init.org +++ b/init.org @@ -960,6 +960,29 @@ All of this should be loaded lazily. ) #+END_SRC +* Modeline +:PROPERTIES: +:header-args: :noweb-ref modeline +:END: + +#+BEGIN_SRC elisp +;; clean up mode line +(require 'rich-minority) +(setq rm-whitelist '(" God" " Paredit")) + +;; show time in modeline but not load average +(setq display-time-format "%H:%M") +(setq display-time-default-load-average nil) +(display-time-mode 1) + +;; show column position of point in status bar +(column-number-mode 1) + +;; smart mode line +(setq sml/theme 'respectful) +(sml/setup) +#+END_SRC + * Lilypond :PROPERTIES: :header-args: :noweb-ref lilypond @@ -1518,7 +1541,12 @@ This is even more stuff to be done after initialising packages. I still need to (setq tab-width 4) (setq gnus-select-method '(nntp "news.gmane.org")) -(load "init-modeline.el") + +;; disable away timestamp in ERC +(setq erc-away-timestamp-format nil) +(setq erc-timestamp-format nil) +;; don’t switch to a newly created IRC buffer +(setq erc-join-buffer 'bury) ;; Revert stale document graphics buffers automatically when the files ;; have changed. @@ -1545,7 +1573,6 @@ This is even more stuff to be done after initialising packages. I still need to (require 'undo-tree) (global-undo-tree-mode 1) -(setq erc-join-buffer 'bury) (savehist-mode) ;; PDF view mode @@ -1704,6 +1731,7 @@ Having defined named code blocks in the sections above we can finally put them a (when (not (string= system-name (rot13 "ovzfo-flf02.zqp-oreyva.arg"))) <> ) +<> <> (global-set-key (kbd "C-x RET 1") (lambda () (interactive) (insert "¯\\_(ツ)_/¯"))) -- cgit v1.2.3