Fix backup saving

This commit is contained in:
Maciej Szlosarczyk 2017-10-29 00:26:03 +03:00
parent 9fce4365dc
commit 5bd7066cde
No known key found for this signature in database
GPG key ID: 94798DD7F02D70C1
13 changed files with 47 additions and 32 deletions

View file

@ -40,6 +40,18 @@
nil
t))
(defun call-in-windowed-mode (callee)
"Call function passed as CALLEE only if run in window mode."
(interactive)
(if (display-graphic-p)
(progn
(funcall callee))))
;; (call-in-windowed-mode 'byte-compile-init-dir)
(add-hook 'kill-emacs-hook 'byte-compile-init-dir)
(add-hook 'emacs-lisp-mode-hook 'remove-elc-on-save)
;; Always start in fullscreen
(defun toggle-fullscreen ()
"Toggle full screen."