瀏覽代碼

Add go-mode configs

master
10sr 5 年之前
父節點
當前提交
5715f5d76e
簽署人: 10sr GPG Key ID: 7BEC428194130EB2
共有 1 個文件被更改,包括 9 次插入0 次删除
  1. +9
    -0
      emacs.el

+ 9
- 0
emacs.el 查看文件

@@ -85,6 +85,7 @@ found, otherwise returns nil."
git-commit
gitignore-mode
adoc-mode
go-mode
;; It seems malabar has been merged into jdee and this package
;; already removed
;; malabar-mode
@@ -1099,6 +1100,12 @@ found, otherwise returns nil."
(add-to-list 'auto-mode-alist
'("/Pipfile\\.lock\\'" . json-mode)))

(add-hook 'go-mode-hook
(lambda()
(defvar go-mode-map)
(add-hook 'before-save-hook' 'gofmt-before-save)
(define-key go-mode-map (kbd "M-.") 'godef-jump)))

;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
;; buffer switching

@@ -1600,6 +1607,8 @@ This mode is a simplified version of `adoc-mode'."
result)))
;; (apply 'concat (car (my-file-head "./emacs.el"))

(set-variable 'dumb-jump-prefer-searcher 'rg)

;; Local Variables:
;; flycheck-disabled-checkers: (emacs-lisp-checkdoc)
;; flycheck-checker: emacs-lisp


Loading…
取消
儲存