lokedhs / gnu-apl-mode

GNU APL mode for Emacs
GNU General Public License v3.0
94 stars 18 forks source link

Will not run any hooks on startup #35

Closed equwal closed 4 years ago

equwal commented 5 years ago

In an attempt to disable smartparens in GNUAPL

(defun smartparens-off ()
  (interactive)
  (smartparens-mode 0))
(add-hook 'gnu-apl-mode-hook 'smartparens-off)

But still it is enabled! I can turn it off by evaluating it outside of a hook (smartparens-off). Also try (add-hook 'gnu-apl-mode-hook 'fundamental-mode) and watch it not work on GNU Emacs 27.0.50

lokedhs commented 5 years ago

The mode used in the interactive session is called gnu-apl-interactive-mode. The other mode is used for buffers editing .apl files. Can you test by adding your function to that hook instead?