emacs.d

bloated emacs configuration
git clone git://git.ckyln.com/~cem/emacs.d.git
Log | Files | Refs | README

commit 3c56990155430af9e9ca68021663a78d79093298
parent 1025df6b81794ce59afc23fd7e84cf01d135088d
Author: Cem Keylan <cem@ckyln.com>
Date:   Fri, 17 Jul 2020 00:42:17 +0300

overall compatibility fixes

Diffstat:
Minit.org | 14+++++++++-----
1 file changed, 9 insertions(+), 5 deletions(-)

diff --git a/init.org b/init.org @@ -201,7 +201,8 @@ I don't want emacs setting up custom variables without me noticing. Let's disable it. #+BEGIN_SRC emacs-lisp - (setq custom-file "/dev/null") + (unless (eq system-type 'windows-nt) (setq custom-file "/dev/null")) + (unless custom-file (setq custom-file "~/.trash")) #+END_SRC ** Starting the server @@ -542,6 +543,7 @@ somewhat wonky. #+BEGIN_SRC emacs-lisp (use-package mu4e + :if (executable-find "mu") :config (load-file "~/.config/mu4e/mu4e-config.el")) #+END_SRC @@ -990,6 +992,9 @@ inconsistency of switching between terminal and the graphical Emacs. #+BEGIN_SRC emacs-lisp (use-package xclip + :if (executable-find "xclip") + :if (getenv "DISPLAY") + :unless (eq system-type 'windows-nt) :ensure t :config (xclip-mode)) #+END_SRC @@ -1033,10 +1038,9 @@ I am setting the default browser from the BROWSER environment variable so that I don't have to keep track of it in case I ever change my browser. #+BEGIN_SRC emacs-lisp - (setq - browse-url-generic-program (executable-find (getenv "BROWSER")) - browse-url-browser-function 'browse-url-generic - ) + (if (getenv "BROWSER") + (setq browser-url-generic-program (executable-find (getenv "BROWSER")) + browser-url-browser-function 'browser-url-generic)) #+END_SRC ** Local init file