summaryrefslogtreecommitdiff
path: root/smart-documents.org
diff options
context:
space:
mode:
authorBlendoit <blendoit@gmail.com>2020-11-24 13:52:03 -0800
committerBlendoit <blendoit@gmail.com>2020-11-24 13:52:03 -0800
commite53ed020887d632b9fcb02f12f7dc21da8105963 (patch)
treeffd20cf99ba55aa40a8245ab2d076f686aa3c7c3 /smart-documents.org
parent167a2d6ac78bf22bee2b107420dcf4b3cb5c028e (diff)
(eq major-mode 'org-mode)
Diffstat (limited to 'smart-documents.org')
-rw-r--r--smart-documents.org8
1 files changed, 4 insertions, 4 deletions
diff --git a/smart-documents.org b/smart-documents.org
index 977b34c..e73def7 100644
--- a/smart-documents.org
+++ b/smart-documents.org
@@ -422,7 +422,7 @@ pressed.
The following bindings lead to more natural window & frame exit behaviors.
#+NAME: close-window-or-previous-buffer
-#+BEGIN_SRC emacs-lisp :tangle no
+#+BEGIN_SRC emacs-lisp :tangle yes
(global-set-key (kbd "C-w")
(lambda ()
"Delete window; if sole window, previous buffer."
@@ -823,7 +823,7 @@ Emacs ships with an IRC client called ~erc~.
"#python")))
(erc-autojoin-timing 'ident) ; Autojoin after NickServ identification.
(erc-fill-function 'erc-fill-static)
- (erc-fill-static-center 20)
+ (erc-fill-static-center 16)
;; (erc-hide-list '("JOIN" "PART" "QUIT"))
(erc-lurker-hide-list '("JOIN" "PART" "QUIT"))
(erc-lurker-threshold-time (* 3600 4)) ; Four hours
@@ -1429,7 +1429,7 @@ document we are working on currently.
(propertize "⇲ " 'mouse-face 'highlight
'face 'org-special-keyword
'help-echo "Minimize this window.")))
- (if (string-equal major-mode "org-mode")
+ (if (eq major-mode 'org-mode)
(org-property-value "TITLE")
(buffer-name))))))
@@ -1451,7 +1451,7 @@ document we are working on currently.
(propertize "⇲ " 'mouse-face 'highlight
'face 'org-special-keyword
'help-echo "Minimize this window.")))
- (if (string-equal major-mode "org-mode")
+ (if (eq major-mode 'org-mode)
(org-property-value "TITLE")
(buffer-name))))))
Copyright 2019--2024 Marius PETER