Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Can I have different values for "super-save-idle-duration" according to mode? #26

Open
alienbogart opened this issue Aug 2, 2019 · 0 comments

Comments

@alienbogart
Copy link

Runtime Environment

  • MX Linux 18
  • dotfiles
  • GNU Emacs 27.0.50
  • Org mode version 9.2.3
  • Evil version 1.2.14
  • ~/.emacs.d
  • super-save 20180929.727

Issue

I'm unable to do it in this way:

(defun my/set-save ()
  (interactive)
  (setq super-save-idle-duration 2))
(add-hook 'web-mode-hook 'my/web-mode-hooks)

Even though the variable is actually set, is has no effect on the saving behavior. setq-local doesn't work either.

That's my use-package for super-save:

(use-package super-save
  :ensure t
  :config

  (setq super-save-triggers
        '(switch-to-buffer
          other-window
          windmove-up
          windmove-down
          windmove-left
          windmove-right
          next-buffer
          previous-buffer
          evil-window-prev
          evil-window-next
          eyebrowse-next-window-config
          eyebrowse-prev-window-config
          eyebrowse-create-window-config))

  (setq super-save-auto-save-when-idle t)

  (setq auto-save-default nil)
  (super-save-mode +1))
@alienbogart alienbogart changed the title How can I make super-save have different values to "super-save-idle-duration" in different modes? Can I have different values for "super-save-idle-duration" according to mode? Aug 2, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant