Skip to content

Instantly share code, notes, and snippets.

@mulander
Created March 21, 2015 18:41
Show Gist options
  • Save mulander/74e1dfc1caee95825860 to your computer and use it in GitHub Desktop.
Save mulander/74e1dfc1caee95825860 to your computer and use it in GitHub Desktop.
;; MELPA setup from
;; http://melpa.org/#/getting-started
(require 'package) ;; You might already have this line
(add-to-list 'package-archives
'("melpa" . "http://melpa.org/packages/") t)
(when (< emacs-major-version 24)
;; For important compatibility libraries like cl-lib
(add-to-list 'package-archives '("gnu" . "http://elpa.gnu.org/packages/")))
(package-initialize) ;; You might already have this line
(require 'auto-complete)
(require 'go-autocomplete)
(require 'auto-complete-config)
(require 'go-eldoc)
;; No need for a key binding - it seems to auto complete itself
;;(define-key ac-mode-map (kbd "M-TAB") 'auto-complete)
;; Hook modes into go mode
(add-hook 'go-mode-hook 'go-eldoc-setup)
(add-hook 'go-mode-hook 'auto-complete-mode)
(add-hook 'go-mode-hook 'flycheck-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
("4e262566c3d57706c70e403d440146a5440de056dfaeb3062f004da1711d83fc" default)))
'(minimap-window-location (quote 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.
)
;; Load the monokai theme
(load-theme 'monokai t)
(tool-bar-mode -1)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment