Skip to content

Instantly share code, notes, and snippets.

@Giacom
Created May 19, 2016 19:32
Show Gist options
  • Select an option

  • Save Giacom/45d8a58cce61fbd4e87644212e7d069f to your computer and use it in GitHub Desktop.

Select an option

Save Giacom/45d8a58cce61fbd4e87644212e7d069f to your computer and use it in GitHub Desktop.
(cond
((>= 24 emacs-major-version)
(require 'package)
(package-initialize)
(add-to-list 'package-archives
'("melpa" . "https://melpa.org/packages/") t)
;;(package-refresh-contents)
)
)
(add-hook 'after-init-hook 'global-company-mode)
(add-hook 'rust-mode-hook 'cargo-minor-mode)
(add-hook 'rust-mode-hook
(lambda ()
(local-set-key (kbd "C-c <tab>") #'rust-format-buffer)))
(setq racer-cmd "/home/alex/.cargo/bin/racer") ;; Rustup binaries PATH
(setq racer-rust-src-path "/home/alex/lib/rust/src") ;; Rust source code PATH
(add-hook 'rust-mode-hook #'racer-mode)
(add-hook 'racer-mode-hook #'eldoc-mode)
(add-hook 'racer-mode-hook #'company-mode)
(add-hook 'flycheck-mode-hook #'flycheck-rust-setup)
(global-flycheck-mode)
(require 'sublime-themes)
(load-theme 'dorsey t)
(require 'evil)
(evil-mode 1)
(linum-mode)
(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-safe-themes
(quote
("58c6711a3b568437bab07a30385d34aacf64156cc5137ea20e799984f4227265" "3d5ef3d7ed58c9ad321f05360ad8a6b24585b9c49abcee67bdcbb0fe583a6950" "b3775ba758e7d31f3bb849e7c9e48ff60929a792961a2d536edec8f68c671ca5" "72a81c54c97b9e5efcc3ea214382615649ebb539cb4f2fe3a46cd12af72c7607" default))))
(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.
'(default ((t (:background nil)))))
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment