Skip to content

Instantly share code, notes, and snippets.

@GeoffChurch
Last active May 2, 2017 20:16
Show Gist options
  • Save GeoffChurch/cc59b55661479af00f1b8f20df179e11 to your computer and use it in GitHub Desktop.
Save GeoffChurch/cc59b55661479af00f1b8f20df179e11 to your computer and use it in GitHub Desktop.
.emacs
(menu-bar-mode -1)
(setq inhibit-startup-screen t)
(setq inhibit-startup-echo-area-message "l")
(setq initial-major-mode 'fundamental-mode)
(setq initial-scratch-message nil)
(setq auto-save-default nil)
(setq make-backup-files nil)
(require 'package)
;;(add-to-list 'package-archives
;; '("melpa_stable" . "http://stable.melpa.org/packages/") t)
(add-to-list 'package-archives
'("marmalade" . "http://marmalade-repo.org/packages/") t)
(add-to-list 'package-archives
'("tromey" . "http://tromey.com/elpa/") t)
(add-to-list 'package-archives
'("melpa" . "http://melpa.org/packages/") t)
(add-to-list 'package-archives
'("melpa_milkbox" . "http://melpa.milkbox.net/packages/") t)
(add-to-list 'package-archives
'("gnu" . "http://elpa.gnu.org/packages/") t)
(package-initialize)
(global-company-mode)
(setq company-idle-delay 0)
;(setq frame-background-mode "dark")
(global-flycheck-mode)
(global-linum-mode)
(setq TeX-parse-self t) ; Enable parse on load.
(setq TeX-auto-save t) ; Enable parse on save.
(add-hook 'c++-mode-hook (lambda () (setq flycheck-gcc-language-standard "c++14")))
(provide '.emacs)
;;; .emacs ends here
(custom-set-variables
;; custom-set-variables was added by Custom.
;; If you edit it by hand, you could mess it up, so be careful.
;; Your init file should contain only one such instance.
;; If there is more than one, they won't work right.
)
(custom-set-faces
;; custom-set-faces was added by Custom.
;; If you edit it by hand, you could mess it up, so be careful.
;; Your init file should contain only one such instance.
;; If there is more than one, they won't work right.
'(company-tooltip ((t (:background "black" :foreground "#fff")))))
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment