Last active
March 28, 2016 08:57
-
-
Save BernardNotarianni/62dbe598683dfe2ce90c to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
;;; packages.el --- Erlang Layer packages File for Spacemacs | |
;; | |
;; Copyright (c) 2012-2016 Sylvain Benner & Contributors | |
;; | |
;; Author: Sylvain Benner <[email protected]> | |
;; URL: https://github.com/syl20bnr/spacemacs | |
;; | |
;; This file is not part of GNU Emacs. | |
;; | |
;;; License: GPLv3 | |
(setq erlang-packages | |
'( | |
company | |
erlang | |
flycheck | |
)) | |
(defun erlang/post-init-company () | |
(add-hook 'erlang-mode-hook 'company-mode)) | |
(defun erlang/init-erlang () | |
(use-package erlang | |
:defer t | |
:init | |
(progn | |
;; explicitly run prog-mode hooks since erlang mode does is not | |
;; derived from prog-mode major-mode | |
(add-hook 'erlang-mode-hook (lambda () (run-hooks 'prog-mode-hook))) | |
;; (setq erlang-root-dir "/usr/lib/erlang/erts-5.10.3") | |
;; (add-to-list 'exec-path "/usr/lib/erlang/erts-5.10.3/bin") | |
;; (setq erlang-man-root-dir "/usr/lib/erlang/erts-5.10.3/man") | |
;; (add-hook 'erlang-mode-hook | |
;; (lambda () | |
;; (setq mode-name "Erlang") | |
;; ;; when starting an Erlang shell in Emacs, with a custom node name | |
;; (setq inferior-erlang-machine-options '("-sname" "syl20bnr")) | |
;; )) | |
(setq erlang-compile-extra-opts '(debug_info))) | |
:config | |
(progn | |
(spacemacs/set-leader-keys-for-major-mode 'erlang-mode | |
"e" 'erlang-export) | |
(require 'erlang-start)))) | |
(defun erlang/post-init-flycheck () | |
(spacemacs/add-flycheck-hook 'erlang-mode-hook)) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
I am trying to activate a shorcut for this function. However, it does not get activated. Any idea what I am doing wrong?