|
@@ -102,7 +102,6 @@ found, otherwise returns nil." |
|
|
;; malabar-mode |
|
|
;; malabar-mode |
|
|
gosh-mode |
|
|
gosh-mode |
|
|
scala-mode |
|
|
scala-mode |
|
|
;;ensime |
|
|
|
|
|
web-mode |
|
|
web-mode |
|
|
|
|
|
|
|
|
|
|
|
|
|
@@ -1217,25 +1216,6 @@ found, otherwise returns nil." |
|
|
'("^\\([^ \n]+\\):\\([0-9]+\\) " 1 2)) |
|
|
'("^\\([^ \n]+\\):\\([0-9]+\\) " 1 2)) |
|
|
) |
|
|
) |
|
|
|
|
|
|
|
|
;; Workaround to avoid ensime error |
|
|
|
|
|
;; (defvar ensime-mode-key-prefix nil) |
|
|
|
|
|
(set-variable 'ensime-startup-notification nil) |
|
|
|
|
|
(set-variable 'ensime-eldoc-hints 'all) |
|
|
|
|
|
;; https://blog.shibayu36.org/entry/2015/07/07/103000 |
|
|
|
|
|
(defun my-ensime-enable-eldoc () |
|
|
|
|
|
"Show error message or type name at point by Eldoc." |
|
|
|
|
|
(setq-local eldoc-documentation-function |
|
|
|
|
|
#'(lambda () |
|
|
|
|
|
(when (ensime-connected-p) |
|
|
|
|
|
(let ((err (ensime-print-errors-at-point))) |
|
|
|
|
|
(or (and err (not (string= err "")) err) |
|
|
|
|
|
(ensime-type-at-point))))) |
|
|
|
|
|
) |
|
|
|
|
|
(eldoc-mode 1) |
|
|
|
|
|
) |
|
|
|
|
|
;; (add-hook 'ensime-mode-hook |
|
|
|
|
|
;; 'my-ensime-enable-eldoc) |
|
|
|
|
|
|
|
|
|
|
|
(when (safe-require-or-eval 'company) |
|
|
(when (safe-require-or-eval 'company) |
|
|
;; http://qiita.com/sune2/items/b73037f9e85962f5afb7 |
|
|
;; http://qiita.com/sune2/items/b73037f9e85962f5afb7 |
|
|
;; https://qiita.com/yuze/items/a145b1e3edb6d0c24cbf |
|
|
;; https://qiita.com/yuze/items/a145b1e3edb6d0c24cbf |
|
|