.emacs.d/init.el

40 lines
962 B
EmacsLisp
Raw Normal View History

2015-07-18 19:35:01 +02:00
;; get rid of useless things
(dolist (mode '(menu-bar-mode tool-bar-mode scroll-bar-mode))
(when (fboundp mode) (funcall mode -1)))
;; utf-8 for dah win
(set-terminal-coding-system 'utf-8)
(set-keyboard-coding-system 'utf-8)
(prefer-coding-system 'utf-8)
(load-library "iso-transl")
;; Ask for y/n instead of yes or no
(defalias 'yes-or-no-p 'y-or-n-p)
;; Get hostname
(setq hostname (replace-regexp-in-string "\\(^[[:space:]\n]*\\|[[:space:]\n]*$\\)" "" (with-output-to-string (call-process "hostname" nil standard-output))))
2015-07-18 20:16:31 +02:00
;; Add lib paths
(setq dotfiles-lib-dir "~/.emacs.d/lib/")
(dolist (path (list "dockerfile-mode"
"markdown-mode"
"linum-plus"
"go-mode"
2015-11-24 10:12:17 +01:00
"emacs-fish"
"yaml-mode"))
2015-07-18 20:16:31 +02:00
(add-to-list 'load-path (concat dotfiles-lib-dir path)))
2015-07-18 19:35:01 +02:00
2015-07-18 20:16:31 +02:00
;; Require libs
(dolist (lib (list 'dockerfile-mode
'linum+
'go-mode
'markdown-mode
2015-11-24 10:12:17 +01:00
'fish-mode
'yaml-mode))
2015-07-18 20:16:31 +02:00
(require lib))
(global-linum-mode 1)
2015-07-18 19:35:01 +02:00