Guest User

Untitled

a guest
Oct 9th, 2021
107
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1.  
  2. ;; Added by Package.el.  This must come before configurations of
  3. ;; installed packages.  Don't delete this line.  If you don't want it,
  4. ;; just comment it out by adding a semicolon to the start of the line.
  5. ;; You may delete these explanatory comments.
  6. (package-initialize)
  7.  
  8. (custom-set-variables
  9.  ;; custom-set-variables was added by Custom.
  10.  ;; If you edit it by hand, you could mess it up, so be careful.
  11.  ;; Your init file should contain only one such instance.
  12.  ;; If there is more than one, they won't work right.
  13.  '(ansi-color-faces-vector
  14.    [default default default italic underline success warning error])
  15.  '(ansi-color-names-vector
  16.    ["#2e3436" "#a40000" "#4e9a06" "#c4a000" "#204a87" "#5c3566" "#729fcf" "#eeeeec"])
  17.  '(beacon-color "#d54e53")
  18.  '(custom-enabled-themes '(leuven))
  19.  '(custom-safe-themes
  20.    '("c3542d6868bbdac1667fd1a7d751fd41520ca63f155b043ffbc4f9b9effb1783" "5a00018936fa1df1cd9d54bee02c8a64eafac941453ab48394e2ec2c498b834a" "249e100de137f516d56bcf2e98c1e3f9e1e8a6dce50726c974fa6838fbfcec6b" "06ed754b259cb54c30c658502f843937ff19f8b53597ac28577ec33bb084fa52" "e266d44fa3b75406394b979a3addc9b7f202348099cfde69e74ee6432f781336" "e8567ee21a39c68dbf20e40d29a0f6c1c05681935a41e206f142ab83126153ca" "a131602c676b904a5509fff82649a639061bf948a5205327e0f5d1559e04f5ed" "2ce76d65a813fae8cfee5c207f46f2a256bac69dacbb096051a7a8651aa252b0" "11cc65061e0a5410d6489af42f1d0f0478dbd181a9660f81a692ddc5f948bf34" "9cd57dd6d61cdf4f6aef3102c4cc2cfc04f5884d4f40b2c90a866c9b6267f2b3" "d9a28a009cda74d1d53b1fbd050f31af7a1a105aa2d53738e9aa2515908cac4c" "f00a605fb19cb258ad7e0d99c007f226f24d767d01bf31f3828ce6688cbdeb22" "6128465c3d56c2630732d98a3d1c2438c76a2f296f3c795ebda534d62bb8a0e3" "d516f1e3e5504c26b1123caa311476dc66d26d379539d12f9f4ed51f10629df3" "3c7a784b90f7abebb213869a21e84da462c26a1fda7e5bd0ffebf6ba12dbd041" "5eed5311ae09ed84cb2e4bf2f033eb4df27e7846a68e4ea3ab8d28f6b017e44a" "1b8d67b43ff1723960eb5e0cba512a2c7a2ad544ddb2533a90101fd1852b426e" "06f0b439b62164c6f8f84fdda32b62fb50b6d00e8b01c2208e55543a6337433a" "628278136f88aa1a151bb2d6c8a86bf2b7631fbea5f0f76cba2a0079cd910f7d" "bb08c73af94ee74453c90422485b29e5643b73b05e8de029a6909af6a3fb3f58" "36ca8f60565af20ef4f30783aa16a26d96c02df7b4e54e9900a5138fb33808da" "bf798e9e8ff00d4bf2512597f36e5a135ce48e477ce88a0764cfb5d8104e8163" "c9ddf33b383e74dac7690255dd2c3dfa1961a8e8a1d20e401c6572febef61045" "aa6638f0cd2ba2c68be03220ea73495116dc6f0b625405ede34087c1babb71ae" "f149d9986497e8877e0bd1981d1bef8c8a6d35be7d82cba193ad7e46f0989f6a" "90a6f96a4665a6a56e36dec873a15cbedf761c51ec08dd993d6604e32dd45940" default))
  21.  '(fci-rule-color "#424242")
  22.  '(flycheck-color-mode-line-face-to-color 'mode-line-buffer-id)
  23.  '(frame-background-mode 'dark)
  24.  '(hl-sexp-background-color "#1c1f26")
  25.  '(org-adapt-indentation nil)
  26.  '(package-selected-packages
  27.    '(auto-complete tango-plus-theme espresso-theme color-theme-sanityinc-tomorrow ample-theme autumn-light-theme material-theme magit org yasnippet lsp-mode kubernetes kubel go-mode flycheck-pycheckers flycheck-gometalinter flycheck-golangci-lint))
  28.  '(pos-tip-background-color "#F3E7D3")
  29.  '(pos-tip-foreground-color "#79716c")
  30.  '(vc-annotate-background nil)
  31.  '(vc-annotate-color-map
  32.    '((20 . "#d54e53")
  33.      (40 . "#e78c45")
  34.      (60 . "#e7c547")
  35.      (80 . "#b9ca4a")
  36.      (100 . "#70c0b1")
  37.      (120 . "#7aa6da")
  38.      (140 . "#c397d8")
  39.      (160 . "#d54e53")
  40.      (180 . "#e78c45")
  41.      (200 . "#e7c547")
  42.      (220 . "#b9ca4a")
  43.      (240 . "#70c0b1")
  44.      (260 . "#7aa6da")
  45.      (280 . "#c397d8")
  46.      (300 . "#d54e53")
  47.      (320 . "#e78c45")
  48.      (340 . "#e7c547")
  49.      (360 . "#b9ca4a")))
  50.  '(vc-annotate-very-old-color nil)
  51.  '(window-divider-mode nil))
  52. (custom-set-faces
  53.  ;; custom-set-faces was added by Custom.
  54.  ;; If you edit it by hand, you could mess it up, so be careful.
  55.  ;; Your init file should contain only one such instance.
  56.  ;; If there is more than one, they won't work right.
  57.  )
  58. (ac-config-default)
  59. (column-number-mode 1)
  60. (global-hl-line-mode 1)
  61. (global-visual-line-mode 1)
  62. (show-paren-mode 1)
  63. (require 'package)
  64. (add-to-list 'package-archives '("melpa" . "http://melpa.org/packages/"))
  65. (require 'yasnippet)
  66. (yas-global-mode 1)
  67. (require 'flycheck)
  68. (global-flycheck-mode 1)
  69. ;; (require 'go-autocomplete)
  70. ;; (require 'auto-complete-config)
  71. ;; (ac-config-default)
  72. (require 'lsp-mode)
  73. (add-hook 'go-mode-hook #'lsp-deferred)
  74.  
  75. ;; Set up before-save hooks to format buffer and add/delete imports.
  76. ;; Make sure you don't have other gofmt/goimports hooks enabled.
  77. (defun lsp-go-install-save-hooks ()
  78.   (add-hook 'before-save-hook #'lsp-format-buffer t t)
  79.   (add-hook 'before-save-hook #'lsp-organize-imports t t))
  80. (add-hook 'go-mode-hook #'lsp-go-install-save-hooks)
  81. ;; (use-package kubernetes
  82. ;;   :ensure t
  83. ;;   :commands (kubernetes-overview)
  84. ;;   :config
  85. ;;   (setq kubernetes-poll-frequency 3600
  86. ;;         kubernetes-redraw-frequency 3600))
  87.  
  88. (require 'org-tempo)
  89.  
  90. ;; https://www.monolune.com/configuring-company-mode-in-emacs/
  91. (add-hook 'after-init-hook 'global-company-mode)
  92. ; No delay in showing suggestions.
  93. (setq company-idle-delay 0)
  94. ; Show suggestions after entering one character.
  95. (setq company-minimum-prefix-length 1)
  96. ; Use tab key to cycle through suggestions.
  97. ; ('tng' means 'tab and go')
  98. (company-tng-configure-default)
  99.  
  100. (setq-default frame-title-format '("%f"))
  101.  
  102. (setq company-global-modes '(not org-mode))
  103. ;; (setq company-global-modes '(not lsp-mode))
  104. ;; (add-hook 'before-save-hook #'gofmt-before-save)
  105.  
  106. (setq lsp-response-timeout 10)
  107.  
  108. ;; (setq lsp-enable-file-watchers nil)
  109.  
  110. (setq lsp-file-watch-threshold 2000)
  111.  
  112. ;; https://www.reddit.com/r/emacs/comments/dib5x7/comment/f3z6t96/?utm_source=reddit&utm_medium=web2x&context=3
  113. (defun disable-auto-complete ()
  114.   (interactive)
  115.   (auto-complete-mode -1))
  116. (add-hook 'lsp-mode-hook #'disable-auto-complete)
  117.  
  118.  
  119.  
  120.  
RAW Paste Data