From ceaff2fd5e50dc8b90605153a48bb77360508625 Mon Sep 17 00:00:00 2001 From: David Robillard Date: Sat, 9 Dec 2017 12:14:17 +0100 Subject: Fix platform-specific configuration --- emacs.d/init.el | 16 +++++++++------- 1 file 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) -- cgit v1.2.1