summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDavid Robillard <d@drobilla.net>2017-12-09 12:14:17 +0100
committerDavid Robillard <d@drobilla.net>2017-12-09 12:14:17 +0100
commitceaff2fd5e50dc8b90605153a48bb77360508625 (patch)
tree75c317a816de2b16d1b827a0dc7ec91251ba7036
parent797f100b027e935e30863aef86d050ef99738968 (diff)
downloaddotfiles-ceaff2fd5e50dc8b90605153a48bb77360508625.tar.gz
dotfiles-ceaff2fd5e50dc8b90605153a48bb77360508625.tar.bz2
dotfiles-ceaff2fd5e50dc8b90605153a48bb77360508625.zip
Fix platform-specific configuration
-rw-r--r--emacs.d/init.el16
1 files changed, 9 insertions, 7 deletions
diff --git a/emacs.d/init.el b/emacs.d/init.el
index 74c881a..625c50b 100644
--- a/emacs.d/init.el
+++ b/emacs.d/init.el
@@ -2,12 +2,15 @@
(add-to-list 'load-path (expand-file-name "~/.emacs.d/site-lisp"))
-;; Fix paths and key bindings on OSX
-(when (equal system-type 'darwin)
- (setenv "PATH" (concat (getenv "PATH") ":/usr/local/bin"))
- (setq exec-path (append exec-path '("/usr/local/bin")))
- (global-set-key [home] 'move-beginning-of-line)
- (global-set-key [end] 'move-end-of-line))
+;; Platform specific configuration
+(cond ((equal system-type 'darwin)
+ (setenv "PATH" (concat (getenv "PATH") ":/usr/local/bin"))
+ (setq exec-path (append exec-path '("/usr/local/bin")))
+ (setq dired-listing-switches "-al")
+ (global-set-key [home] 'move-beginning-of-line)
+ (global-set-key [end] 'move-end-of-line))
+ ((or (equal system-type 'gnu/linux) (equal system-type 'gnu/kfreebsd))
+ (setq dired-listing-switches "-al --time-style=long-iso")))
(setq-default
gc-cons-threshold 10000000
@@ -115,7 +118,6 @@
(quote
("498d05dd285960bd58847dec6e3035978dd8657786ac519bea9c6498112251b3" default)))
'(delete-old-versions t)
- '(dired-listing-switches "-al --time-style=long-iso")
'(dired-omit-files "^\\.?#\\|^\\.$\\|^\\.\\.\\|^\\..*$")
'(diredp-hide-details-initially-flag t)
'(diredp-wrap-around-flag nil)