2017-07-22 18:48:50 +03:00
|
|
|
(require 'package)
|
|
|
|
|
(setq package-enable-at-startup nil)
|
|
|
|
|
(add-to-list 'package-archives '("melpa" . "https://melpa.org/packages/"))
|
|
|
|
|
;;(add-to-list 'package-archives '("marmalade" . "https://marmalade-repo.org/packages/"))
|
|
|
|
|
(add-to-list 'package-archives '("gnu" . "https://elpa.gnu.org/packages/"))
|
|
|
|
|
(package-initialize)
|
|
|
|
|
|
|
|
|
|
(unless (package-installed-p 'use-package)
|
|
|
|
|
(package-refresh-contents)
|
|
|
|
|
(package-install 'use-package))
|
|
|
|
|
|
|
|
|
|
(eval-when-compile
|
|
|
|
|
(require 'use-package))
|
|
|
|
|
(require 'diminish)
|
|
|
|
|
(require 'bind-key)
|
|
|
|
|
|
|
|
|
|
(use-package better-defaults
|
|
|
|
|
:ensure t)
|
|
|
|
|
|
|
|
|
|
(use-package powerline
|
|
|
|
|
:ensure t
|
|
|
|
|
:config
|
|
|
|
|
(powerline-default-theme)
|
|
|
|
|
:init
|
|
|
|
|
)
|
|
|
|
|
|
|
|
|
|
;; helm
|
|
|
|
|
(use-package helm
|
|
|
|
|
:ensure t
|
|
|
|
|
:bind (("M-x" . helm-M-x)
|
|
|
|
|
("C-x C-f" . helm-find-files)
|
|
|
|
|
("C-x b" . helm-mini)
|
|
|
|
|
("C-x C-d" . helm-browse-project)
|
|
|
|
|
)
|
|
|
|
|
)
|
|
|
|
|
|
|
|
|
|
(use-package helm-themes
|
|
|
|
|
:ensure t)
|
|
|
|
|
(use-package helm-tramp
|
|
|
|
|
:ensure t)
|
2017-08-18 18:41:58 +03:00
|
|
|
|
|
|
|
|
(use-package company
|
|
|
|
|
:ensure t
|
|
|
|
|
:init (global-company-mode)
|
|
|
|
|
:config
|
|
|
|
|
(progn
|
|
|
|
|
;; use company for completion
|
|
|
|
|
(bind-key [remap completion-at-point] #'company-complete company-mode-map)
|
|
|
|
|
|
|
|
|
|
(setq company-tooltip-align-annotations t
|
|
|
|
|
;; Easy navigation to candidates with M-<n>
|
|
|
|
|
company-show-numbers t)
|
|
|
|
|
)
|
|
|
|
|
:diminish company-mode
|
|
|
|
|
)
|
|
|
|
|
|
|
|
|
|
(use-package company-quickhelp ; Documentation popups for Company
|
|
|
|
|
:ensure t
|
|
|
|
|
:defer t
|
|
|
|
|
:init (add-hook 'global-company-mode-hook #'company-quickhelp-mode))
|
|
|
|
|
|
|
|
|
|
(use-package company-go
|
|
|
|
|
:ensure t
|
|
|
|
|
:defer t
|
|
|
|
|
:init
|
|
|
|
|
(with-eval-after-load 'company
|
|
|
|
|
(add-to-list 'company-backends 'company-go)))
|
|
|
|
|
|
|
|
|
|
(use-package flycheck
|
|
|
|
|
:ensure t
|
|
|
|
|
:defer t
|
|
|
|
|
:init (add-hook 'sh-mode-hook 'flycheck-mode)
|
|
|
|
|
)
|
|
|
|
|
|
|
|
|
|
(use-package yasnippet
|
|
|
|
|
:ensure t
|
|
|
|
|
:init (yas-global-mode 1)
|
|
|
|
|
)
|
|
|
|
|
|
|
|
|
|
(use-package go-mode
|
|
|
|
|
:ensure t
|
|
|
|
|
:init
|
|
|
|
|
(progn
|
|
|
|
|
(setq gofmt-command "goimports")
|
|
|
|
|
(add-hook 'before-save-hook 'gofmt-before-save)
|
|
|
|
|
(bind-key [remap find-tag] #'godef-jump))
|
|
|
|
|
:config
|
|
|
|
|
(add-hook 'go-mode-hook 'electric-pair-mode)
|
|
|
|
|
(setq company-tooltip-limit 20)
|
|
|
|
|
(setq company-idle-delay .3)
|
|
|
|
|
(setq company-echo-delay 0)
|
|
|
|
|
(setq company-begin-commands '(self-insert-command))
|
|
|
|
|
)
|
|
|
|
|
|
2017-07-22 18:48:50 +03:00
|
|
|
(use-package markdown-mode
|
|
|
|
|
:ensure t)
|
|
|
|
|
|
|
|
|
|
(use-package magit
|
|
|
|
|
:ensure t
|
|
|
|
|
:bind (("C-x g" . magit-status)
|
|
|
|
|
)
|
|
|
|
|
)
|
|
|
|
|
|
|
|
|
|
(use-package paradox
|
|
|
|
|
:ensure t
|
|
|
|
|
:defer t)
|
2017-08-18 18:41:58 +03:00
|
|
|
|
2017-07-22 18:48:50 +03:00
|
|
|
(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.
|
|
|
|
|
'(ansi-color-faces-vector
|
|
|
|
|
[default default default italic underline success warning error])
|
|
|
|
|
'(nrepl-message-colors
|
|
|
|
|
(quote
|
|
|
|
|
("#336c6c" "#205070" "#0f2050" "#806080" "#401440" "#6c1f1c" "#6b400c" "#23733c")))
|
|
|
|
|
'(package-selected-packages
|
|
|
|
|
(quote
|
2017-08-18 18:41:58 +03:00
|
|
|
(go-snippets company-go cyberpunk-theme dad-joke darkane-theme darkmine-theme helm-themes markdown-mode anti-zenburn-theme helm-tramp magit use-package powerline paradox helm)))
|
2017-07-22 18:48:50 +03:00
|
|
|
'(paradox-github-token t)
|
|
|
|
|
'(pdf-view-midnight-colors (quote ("#232333" . "#c7c7c7")))
|
|
|
|
|
'(tool-bar-mode nil)
|
|
|
|
|
'(vc-annotate-background "#d4d4d4")
|
|
|
|
|
'(vc-annotate-color-map
|
|
|
|
|
(quote
|
|
|
|
|
((20 . "#437c7c")
|
|
|
|
|
(40 . "#336c6c")
|
|
|
|
|
(60 . "#205070")
|
|
|
|
|
(80 . "#2f4070")
|
|
|
|
|
(100 . "#1f3060")
|
|
|
|
|
(120 . "#0f2050")
|
|
|
|
|
(140 . "#a080a0")
|
|
|
|
|
(160 . "#806080")
|
|
|
|
|
(180 . "#704d70")
|
|
|
|
|
(200 . "#603a60")
|
|
|
|
|
(220 . "#502750")
|
|
|
|
|
(240 . "#401440")
|
|
|
|
|
(260 . "#6c1f1c")
|
|
|
|
|
(280 . "#935f5c")
|
|
|
|
|
(300 . "#834744")
|
|
|
|
|
(320 . "#732f2c")
|
|
|
|
|
(340 . "#6b400c")
|
|
|
|
|
(360 . "#23733c"))))
|
|
|
|
|
'(vc-annotate-very-old-color "#23733c"))
|
|
|
|
|
(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 (:inherit nil :stipple nil :inverse-video nil :box nil :strike-through nil :overline nil :underline nil :slant normal :weight normal :height 142 :width normal :foundry "unci" :family "MonofurForPowerline Nerd Font")))))
|