summaryrefslogtreecommitdiffstats
path: root/.emacs.d/init.org
diff options
context:
space:
mode:
authorGravatar Tom Willemse2013-11-27 01:23:06 +0100
committerGravatar Tom Willemse2013-11-27 01:23:06 +0100
commit87abe8fa15ca4822fdd69330b910e814dab8f6d7 (patch)
tree8e19f5856c782fddbaa779c35098a5ab9042f82c /.emacs.d/init.org
parent07500848d9ed01a8ff4179af6f7d32b24c9593df (diff)
downloademacs-87abe8fa15ca4822fdd69330b910e814dab8f6d7.tar.gz
emacs-87abe8fa15ca4822fdd69330b910e814dab8f6d7.zip
Fix config for phoenix
Diffstat (limited to '.emacs.d/init.org')
-rw-r--r--.emacs.d/init.org53
1 files changed, 30 insertions, 23 deletions
diff --git a/.emacs.d/init.org b/.emacs.d/init.org
index 28b8cf9..1f37c7b 100644
--- a/.emacs.d/init.org
+++ b/.emacs.d/init.org
@@ -182,16 +182,19 @@
running a daemon, just set the theme.
#+BEGIN_SRC emacs-lisp
- (let ((setp (not (daemonp))))
- (defun init-set-theme (frame)
- "Try to set the theme for the current (first) frame."
- (ignore frame)
- (unless setp
- (run-at-time .1 nil (lambda () (setq setp (load-theme 'yoshi t)))))))
-
- (if (daemonp)
- (add-hook 'after-make-frame-functions #'init-set-theme)
- (eval-after-init (load-theme 'yoshi t)))
+ (let ((theme (if (equal system-name "drd")
+ 'yoshi
+ 'leuven)))
+ (let ((setp (not (daemonp))))
+ (defun init-set-theme (frame)
+ "Try to set the theme for the current (first) frame."
+ (ignore frame)
+ (unless setp
+ (run-at-time .1 nil (lambda () (setq setp (load-theme theme t)))))))
+
+ (if (daemonp)
+ (add-hook 'after-make-frame-functions #'init-set-theme)
+ (eval-after-init (load-theme theme t))))
#+END_SRC
* Browsing with eww
@@ -222,12 +225,13 @@
#+BEGIN_SRC emacs-lisp
(defun init-set-emacs-lisp-symbols ()
- (setq prettify-symbols-alist
- (append prettify-symbols-alist
- '(("<=" . ?≤)
- (">=" . ?≥)
- ("sqrt" . ?√)))))
-
+ (when (boundp 'prettify-symbols-alist)
+ (setq prettify-symbols-alist
+ (append prettify-symbols-alist
+ '(("<=" . ?≤)
+ (">=" . ?≥)
+ ("sqrt" . ?√))))))
+
(add-hook 'emacs-lisp-mode-hook #'init-set-emacs-lisp-symbols)
#+END_SRC
@@ -237,19 +241,22 @@
#+BEGIN_SRC emacs-lisp
(defun init-set-python-symbols ()
- (setq prettify-symbols-alist
- '(("lambda" . ?λ)
- ("<=" . ?≤)
- (">=" . ?≥)
- ("!=" . ?≠))))
-
+ (when (boundp 'prettify-symbols-alist)
+ (setq prettify-symbols-alist
+ '(("lambda" . ?λ)
+ ("<=" . ?≤)
+ (">=" . ?≥)
+ ("!=" . ?≠)))))
+
(add-hook 'python-mode-hook #'init-set-python-symbols)
#+END_SRC
Now just turn it on for =prog-mode=.
#+BEGIN_SRC emacs-lisp
- (add-hook 'prog-mode-hook 'prettify-symbols-mode)
+ (when (and (>= emacs-major-version 24)
+ (> emacs-minor-version 3))
+ (add-hook 'prog-mode-hook 'prettify-symbols-mode))
#+END_SRC
* Slime implementations