Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

New wrangler, use new OTP provided flymake.

  • Loading branch information...
commit 89471e90f9b9eb7f0365e4b55136faf8461d08de 1 parent 66677f1
@jlouis authored
Showing with 16 additions and 13 deletions.
  1. +3 −2 configs/init-erlang.el
  2. +13 −11 configs/init-flymake.el
View
5 configs/init-erlang.el
@@ -1,5 +1,5 @@
(setq erlang-root-dir "/usr/local/lib/erlang")
-(setq tools-ver "2.6.6.6")
+(setq tools-ver "2.6.7")
(setq load-path (cons (concat erlang-root-dir "/lib/tools-" tools-ver "/emacs")
load-path))
(setq exec-path (cons (concat erlang-root-dir "/bin")
@@ -8,7 +8,8 @@
;; Wrangler
-(add-to-list 'load-path "/usr/local/share/wrangler/elisp")
+(add-to-list 'load-path
+ "/usr/local/lib/erlang/lib/wrangler-1.0/elisp")
(require 'wrangler)
(add-hook 'erlang-mode-hook 'esk-prog-mode-hook)
View
24 configs/init-flymake.el
@@ -1,18 +1,20 @@
(require 'flymake)
+(require 'erlang-flymake)
;; Erlang
-(defun flymake-erlang-init ()
- (let* ((temp-file (flymake-init-create-temp-buffer-copy
- 'flymake-create-temp-inplace))
- (local-file
- (file-relative-name temp-file
- (file-name-directory buffer-file-name))))
- (list (concat emacs-config-dir
- "/scripts/"
- "flymake_erlang_script") (list local-file))))
+;; (defun flymake-erlang-init ()
+;; (let* ((temp-file (flymake-init-create-temp-buffer-copy
+;; 'flymake-create-temp-inplace))
+;; (local-file
+;; (file-relative-name temp-file
+;; (file-name-directory buffer-file-name))))
+;; (list (concat emacs-config-dir
+;; "/scripts/"
+;; "flymake_erlang_script") (list local-file))))
+
+;; (add-to-list 'flymake-allowed-file-name-masks
+;; '("\\.erl\\'" flymake-erlang-init))
-(add-to-list 'flymake-allowed-file-name-masks
- '("\\.erl\\'" flymake-erlang-init))
(add-hook 'find-file-hook 'flymake-find-file-hook)
;; Disable flymake for html and xml files as this is handled by nxml mode.
Please sign in to comment.
Something went wrong with that request. Please try again.