diff --git a/.emacs.d/init.el b/.emacs.d/init.el index c015672..79044c3 100644 --- a/.emacs.d/init.el +++ b/.emacs.d/init.el @@ -55,10 +55,10 @@ (delete-trailing-whitespace))) (defun oni/after-save-hook () - (let ((fname (buffer-file-name))) - (let ((suffix (file-name-extension fname))) + (let* ((fname (buffer-file-name)) + (suffix (file-name-extension fname))) (if (string-equal suffix "el") - (byte-compile-file fname))))) + (byte-compile-file fname)))) (defun oni/pretty-lambdas () (font-lock-add-keywords @@ -395,7 +395,7 @@ (global-set-key [f12] 'ide-skel-toggle-right-view-window) ;;-----[ Misc ]---------------------------------------------------------- -(defun oni/reload-buffer +(defun oni/reload-buffer () (interactive) (revert-buffer nil t nil))