bbatsov / super-save

Save Emacs buffers when they lose focus
313 stars 20 forks source link

Impossible to disable `super-save-mode` #32

Open alienbogart opened 4 years ago

alienbogart commented 4 years ago

My Environment

Issue

M-x super-save-mode has no effect in any buffer: it just keeps saving no matter what. To disable it, I need to change my configurations and reboot. Evaluating (super-save-mode +1) or (setq super-save-mode nil) has absolutely no effect.

This is my use-package declaration for super-save:

(use-package super-save
  :defer nil
  :ensure t
  :config
  (setq auto-save-default nil
        auto-save-file-name-transforms `((".*" "~/.emacs.d/var/temp" t))
        auto-save-interval 300
        auto-save-timeout 30
        auto-save-visited-mode t
        super-save-exclude '(".py")
        super-save-auto-save-when-idle t
        super-save-idle-duration 1
        super-save-triggers
        '(balance-windows
          evil-window-next
          evil-window-prev
          eyebrowse-close-window-config
          eyebrowse-create-window-config
          my/no-highlight
          eyebrowse-next-window-config
          eyebrowse-prev-window-config
          eyebrowse-switch-to-window-config-1
          eyebrowse-switch-to-window-config-2
          eyebrowse-switch-to-window-config-3
          eyebrowse-switch-to-window-config-4
          eyebrowse-switch-to-window-config-5
          eyebrowse-switch-to-window-config-6
          eyebrowse-switch-to-window-config-7
          eyebrowse-switch-to-window-config-8
          eyebrowse-switch-to-window-config-9
          next-buffer
          org-babel-execute-src-block
          other-window
          previous-buffer
          split-window-below
          split-window-horizontally
          start-process-shell-command
          switch-to-buffer
          treemacs-select-window
          windmove-down
          windmove-left
          windmove-right
          windmove-up))

  (super-save-mode +1))
kamoii commented 4 years ago

@mrbig033 M-x super-save-mode works for me. What does the message say when you try to turn of by M-x super-save-mode(It shoud be Super-Save mode disabled if its working).

eschutz commented 3 years ago

I couldn't get super save to disable by default, M-x super-save-mode disabled it in that buffer but setting (super-save-mode -1) did nothing. The only way I could get it to work was by placing a file containing

(provide 'super-save)
(defvar super-save-remote-files nil)
(defvar super-save-idle-timer nil)
(defvar super-save-idle-duration nil)
(defvar super-save-mode nil)
(defvar super-save-mode-map nil)
(defvar super-save-mode-hook nil)
(defvar super-save-triggers nil)
(defvar super-save-auto-save-when-idle nil)
(defvar super-save-hook-triggers nil)
(defvar super-save-exclude nil)

in personal/preload. This makes Prelude think super save is loaded so it doesn't raise an error on startup.