Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- (require 'package) ;; You might already have this line
- (add-to-list 'package-archives
- '("melpa" . "https://melpa.org/packages/") t)
- (package-initialize) ;; You might already have this line
- (require 'iso-transl)
- ;; Local emacs path
- (add-to-list 'load-path "~/.emacs.d/lisp")
- (customize-set-variable 'tramp-default-method "ssh")
- (setq-default exec-path-from-shell-check-startup-files nil)
- (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-enabled-themes (quote (wombat)))
- '(display-line-numbers (quote relative))
- '(display-line-numbers-type (quote relative))
- '(global-display-line-numbers-mode nil)
- '(package-selected-packages
- (quote
- (## rust-mode evil-indent-plus evil-multiedit powerline-evil evil-tutor evil-magit evil haskell-emacs-text haskell-emacs-base spice-mode typescript-mode flymake-hlint company-cabal company-rtags flycheck-hdevtools hindent bison-mode lex hlint-refactor ws-butler magit-svn magit-filenotify magit intero flycheck-rust company-ghci company-auctex company-ghc flycheck-haskell smart-tabs-mode haskell-mode yaml-mode markdown-preview-eww markdown-toc markdown-mode+ markdown-preview-mode markdown-mode neotree gitignore-mode go-snippets go-stacktracer go-eldoc go-gopath zeitgeist graphviz-dot-mode flyspell-lazy dropbox go-guru company-go flycheck-gometalinter go-mode sr-speedbar ggtags cmake-ide git flycheck-clangcheck company-irony-c-headers company-bibtex auto-complete-c-headers company-c-headers auto-complete-clang irony-eldoc flyspell-correct flycheck-irony exec-path-from-shell company-irony balsa)))
- '(safe-local-variable-values (quote ((TeX-master . "volume") (TeX-master . paper))))
- '(tramp-default-method "ssh" nil (tramp)))
- (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.
- )
- ;; Evil Mode Configuration
- (require 'evil)
- (require 'evil-magit)
- (evil-mode 1)
- (setq evil-search-module 'evil-search)
- ;; Visual Configuration
- (require 'powerline)
- (require 'powerline-evil)
- (powerline-center-evil-theme)
- (setq inhibit-startup-screen t)
- (tool-bar-mode -1)
- ;; Make transparent
- (set-frame-parameter (selected-frame) 'alpha 95)
- (add-to-list 'default-frame-alist '(alpha . 95))
- ;; Set tab to 2 spaces for confort
- (setq-default default-tab-width 2)
- (setq-default indent-tabs-mode nil)
- (setq-default javascript-indent-level 2)
- (setq-default typescript-indent-level 2)
- ;; Use command key as Meta
- (setq-default mac-option-key-is-meta nil
- mac-command-key-is-meta t
- mac-command-modifier 'meta
- mac-option-modifier 'none)
- (exec-path-from-shell-initialize)
- (exec-path-from-shell-copy-env "GOPATH")
- (setq-default TeX-master nil)
- (add-hook 'LaTeX-mode-hook 'visual-line-mode)
- (add-hook 'LaTeX-mode-hook 'LaTeX-math-mode)
- (add-hook 'LaTeX-mode-hook 'turn-on-reftex)
- ;; Flyspell
- (autoload 'flyspell-mode "flyspell" "On-the-fly spelling checker." t)
- ;; the default flyspell behaviour
- (put 'LeTex-mode 'flyspell-mode-predicate 'tex-mode-flyspell-verify)
- (add-hook 'LaTeX-mode-hook 'flyspell-mode)
- (add-hook 'c++-mode-hook 'irony-mode)
- (add-hook 'c-mode-hook 'irony-mode)
- (add-hook 'objc-mode-hook 'irony-mode)
- ;; replace the `completion-at-point' and `complete-symbol' bindings in
- ;; irony-mode's buffers by irony-mode's function
- (defun my-irony-mode-hook ()
- (define-key irony-mode-map [remap completion-at-point]
- 'irony-completion-at-point-async)
- (define-key irony-mode-map [remap complete-symbol]
- 'irony-completion-at-point-async))
- (add-hook 'irony-mode-hook 'my-irony-mode-hook)
- (add-hook 'irony-mode-hook 'irony-cdb-autosetup-compile-options)
- (eval-after-load 'flycheck
- '(add-hook 'flycheck-mode-hook #'flycheck-irony-setup))
- (add-hook 'irony-mode-hook 'company-irony-setup-begin-commands)
- (require 'company-irony-c-headers)
- (eval-after-load 'company
- '(add-to-list
- 'company-backends '(company-irony-c-headers company-irony company-go company-ghc)))
- ;; Enables Flycheck Globally
- (add-hook 'after-init-hook 'global-flycheck-mode)
- (add-hook 'after-init-hook 'global-company-mode)
- (setq-default ispell-list-command "--list")
- (add-hook 'before-save-hook #'gofmt-before-save)
- (cmake-ide-setup)
- (add-hook 'go-mode-hook 'flyspell-prog-mode)
- (add-hook 'markdown-mode-hook 'flyspell-mode)
- (require 'reftex)
- (setq-default TeX-master nil)
- (add-hook 'LaTeX-mode-hook 'TeX-PDF-mode) ;turn on pdf-mode. AUCTeX
- ;will call pdflatex to
- ;compile instead of latex.
- (add-hook 'LaTeX-mode-hook 'LaTeX-math-mode) ;turn on math-mode by
- ;default
- (add-hook 'LaTeX-mode-hook 'reftex-mode) ;turn on REFTeX mode by
- ;default
- (add-hook 'LaTeX-mode-hook 'flyspell-mode) ;turn on flyspell mode by
- ;default
- (setq reftex-plug-into-AUCTeX t)
- (setq-default TeX-auto-save t)
- (setq-default TeX-save-query nil)
- (setq-default TeX-parse-self t)
- (put 'upcase-region 'disabled nil)
- (intero-global-mode)
- (add-hook 'haskell-mode-hook 'turn-on-haskell-doc-mode)
- (add-hook 'haskell-mode-hook 'turn-on-haskell-indentation)
- (add-hook 'haskell-mode-hook 'flymake-hlint-load)
- (add-hook 'haskell-mode-hook 'hlint-refactor-mode)
- (setq-default haskell-stylish-on-save t)
- (provide '.emacs)
- ;;; .emacs ends here
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement