;; Load cask info (require 'cask "~/local/share/cask/cask.el") (cask-initialize) ;; Enable flycheck ;;(use-package flycheck ;; :ensure t ;; :init (global-flycheck-mode)) (add-hook 'after-init-hook #'global-flycheck-mode) ;; Generic Emacs stuff (add-to-list 'load-path "~/.emacs.d/modes/") (add-to-list 'load-path "~/.emacs.d/misc/") (show-paren-mode 1) ;; CSS Mode needs to be applied to scss files. (add-to-list 'auto-mode-alist '("\\.scss" . css-mode)) (setq-default css-indent-offset 2) ;; Always use spaces instead of tabs, a tab is 4 spaces by default (setq-default tab-always-indent t) (setq-default indent-tabs-mode nil) (setq-default tab-width 4) (setq-default tab-stop-list (number-sequence 4 120 4)) (setq-default tab-always-indent 'complete) ;; 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) (add-to-list 'auto-mode-alist '("\\.js$" . js2-mode)) ; 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)