2018-01-27 14:18:13 +00:00
|
|
|
;; https://github.com/bbatsov/prelude/issues/938
|
|
|
|
;; https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=803462
|
|
|
|
;; Always load newest byte code
|
|
|
|
;; (setq load-prefer-newer t)
|
|
|
|
|
2016-11-11 22:10:03 +00:00
|
|
|
;; Load cask info
|
2018-01-27 14:18:13 +00:00
|
|
|
|
|
|
|
;; Added by Package.el. This must come before configurations of
|
|
|
|
;; installed packages. Don't delete this line. If you don't want it,
|
|
|
|
;; just comment it out by adding a semicolon to the start of the line.
|
|
|
|
;; You may delete these explanatory comments.
|
|
|
|
(package-initialize)
|
|
|
|
|
2016-11-11 22:10:03 +00:00
|
|
|
(require 'cask "~/local/share/cask/cask.el")
|
|
|
|
(cask-initialize)
|
|
|
|
|
|
|
|
;; Enable flycheck
|
2017-03-17 15:58:59 +00:00
|
|
|
;;(use-package flycheck
|
|
|
|
;; :ensure t
|
|
|
|
;; :init (global-flycheck-mode))
|
2017-03-17 16:37:25 +00:00
|
|
|
(add-hook 'after-init-hook #'global-flycheck-mode)
|
2016-11-11 22:10:03 +00:00
|
|
|
|
2012-11-21 23:46:21 +00:00
|
|
|
;; Generic Emacs stuff
|
2016-05-27 20:47:57 +00:00
|
|
|
(add-to-list 'load-path "~/.emacs.d/modes/")
|
|
|
|
(add-to-list 'load-path "~/.emacs.d/misc/")
|
2013-03-08 17:51:41 +00:00
|
|
|
(show-paren-mode 1)
|
2013-02-22 14:16:16 +00:00
|
|
|
|
2016-02-10 15:07:27 +00:00
|
|
|
;; CSS Mode needs to be applied to scss files.
|
|
|
|
(add-to-list 'auto-mode-alist '("\\.scss" . css-mode))
|
|
|
|
(setq-default css-indent-offset 2)
|
|
|
|
|
2012-11-21 23:46:21 +00:00
|
|
|
;; Always use spaces instead of tabs, a tab is 4 spaces by default
|
2016-02-10 15:07:27 +00:00
|
|
|
(setq-default tab-always-indent t)
|
2012-11-21 23:46:21 +00:00
|
|
|
(setq-default indent-tabs-mode nil)
|
|
|
|
(setq-default tab-width 4)
|
2016-02-10 15:07:27 +00:00
|
|
|
(setq-default tab-stop-list (number-sequence 4 120 4))
|
|
|
|
(setq-default tab-always-indent 'complete)
|
2012-11-21 23:46:21 +00:00
|
|
|
|
2012-11-22 00:36:15 +00:00
|
|
|
;; WhiteSpace hilighting
|
|
|
|
(require 'whitespace)
|
|
|
|
(setq whitespace-style (quote (face trailing tabs tab-mark empty lines-tail)))
|
|
|
|
(setq-default whitespace-line-column 80)
|
|
|
|
(global-whitespace-mode 1)
|
|
|
|
|
|
|
|
;; C, use k&r style by default (naev)
|
|
|
|
(setq-default c-default-style "k&r"
|
|
|
|
c-basic-offset 3)
|
|
|
|
|
2012-11-21 23:46:21 +00:00
|
|
|
(add-to-list 'auto-mode-alist '("\\.js$" . js2-mode))
|
2016-11-11 22:26:31 +00:00
|
|
|
|
|
|
|
; Flymd's flyit doesn't work well with chrome/chromeium
|
|
|
|
(defun my-flymd-browser-function (url)
|
|
|
|
(let ((browse-url-browser-function 'browse-url-firefox))
|
|
|
|
(browse-url url)))
|
|
|
|
(setq flymd-browser-open-function 'my-flymd-browser-function)
|
2017-03-20 00:00:48 +00:00
|
|
|
|
|
|
|
; Magit configuration.
|
|
|
|
(global-set-key (kbd "C-x g") 'magit-status)
|
|
|
|
|