From 24609ba8d6a0cb162808092634a6553e97001bdd Mon Sep 17 00:00:00 2001 From: Taylor Bockman Date: Fri, 8 Apr 2016 00:51:39 -0700 Subject: [PATCH] Set emacs file encoding to unix --- dotfiles/emacs.d/init.el | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/dotfiles/emacs.d/init.el b/dotfiles/emacs.d/init.el index a55471f..be72925 100644 --- a/dotfiles/emacs.d/init.el +++ b/dotfiles/emacs.d/init.el @@ -69,6 +69,12 @@ (add-hook 'eshell-mode-hook 'set-buffer-utf8) ;;-------------------------------------------------------------------------------------- +;; Prefer unix style line endings +;;-------------------------------------------------------------------------------------- + +(set-buffer-file-coding-system 'unix) + +;;-------------------------------------------------------------------------------------- ;; Conditionally load urxvt files to fix weird bindings ;;--------------------------------------------------------------------------------------