Коллеги, кто-нибудь может поделиться рабочей конфигурацией emacs c настроенными distel+flycheck(rebar)+company*, wrangkel (опционально)?
emacs - 24.4 или 25.1
Я новичек в emacs и нужна помощь, так как моя конфигурация живет своей жизнью :-(
Я привожу ее ниже - там указаны версии дополнений явно (они должны быть последними стабильными)
;; distribs list
(require 'package)
(setq package-archives '(("ELPA" . "
http://tromey.com/elpa/")
("gnu" . "
http://elpa.gnu.org/packages/")
("marmalade" . "
https://marmalade-repo.org/packages/")
("melpa" . "
https://melpa.org/packages/")))
(package-initialize)
;; erlang
(setq load-path (cons "/usr/lib/erlang/lib/tools-2.8.3/emacs" load-path))
(setq erlang-root-dir "/usr/lib/erlang/lib/tools-2.8.3")
(setq exec-path (cons "/usr/lib/erlang/lib/tools-2.8.3/bin" exec-path))
(setq erlang-man-root-dir "/usr/lib/erlang/lib/tools-2.8.3/man")
(load "erlang_appwiz" t nil)
(require 'erlang-start)
(require 'erlang-eunit)
(add-to-list 'load-path "~/.emacs.d/flycheck-20160622.952/")
(require 'flycheck)
(flycheck-define-checker erlang-otp
"An Erlang syntax checker using the Erlang interpreter."
:command ("erlc" "-o" temporary-directory "-Wall"
"-I" "../include" "-I" "../../include"
"-I" "../../../include" source)
:error-patterns
((warning line-start (file-name) ":" line ": Warning:" (message) line-end)
(error line-start (file-name) ":" line ": " (message) line-end)))
(add-hook 'erlang-mode-hook
(lambda ()
(flycheck-select-checker 'erlang-otp)
(flycheck-mode)))
(add-to-list 'load-path "~/.emacs.d/flycheck-tip-20160622.1906/")
(require 'flycheck-tip)
(flycheck-tip-use-timer 'verbose)
;; distel
(add-to-list 'load-path "~/.emacs.d/distel/elisp/")
(require 'distel)
(distel-setup)
(setq derl-cookie "emacs")
;; prevent annoying hang-on-compile
;(defvar inferior-erlang-prompt-timeout t)
;; default node name to emacs@localhost
(setq inferior-erlang-machine-options '("-sname" "emacs@s2"))
;; tell distel to default to that node
(setq erl-nodename-cache
(make-symbol
(concat
"emacs@"
(car (split-string (shell-command-to-string "hostname"))))))
(add-to-list 'load-path "~/.emacs.d/company-distel/")
(require 'company-distel)
(with-eval-after-load 'company
(add-to-list 'company-backends 'company-distel))
;(add-hook 'erlang-mode-hook
; (lambda ()
; (setq company-backends '(company-distel))))