Debug undefined add-hook-before-save

`use-package` complains that `add-hook-before-save` doesn't exist. This is
because it's now named `macros-add-hook-before-save`.

This fixes that.
This commit is contained in:
William Carroll 2020-09-02 14:49:10 +01:00
parent 71e57700d6
commit 924c7fa419
4 changed files with 36 additions and 5 deletions

View file

@ -10,10 +10,20 @@
;;; Code:
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
;; Dependencies
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
(require 'macros)
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
;; Configuration
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
;; font-locking, glyph support, etc
(use-package haskell-mode
:config
(add-hook-before-save 'haskell-mode #'haskell-align-imports))
(macros-add-hook-before-save 'haskell-mode #'haskell-align-imports))
;; LSP support
(use-package lsp-haskell