summary refs log tree commit diff
path: root/emacs/custom
diff options
context:
space:
mode:
Diffstat (limited to 'emacs/custom')
-rw-r--r--emacs/custom/my-prog.el18
1 files changed, 7 insertions, 11 deletions
diff --git a/emacs/custom/my-prog.el b/emacs/custom/my-prog.el
index 379262f..65faad2 100644
--- a/emacs/custom/my-prog.el
+++ b/emacs/custom/my-prog.el
@@ -20,17 +20,13 @@
 ;; Jump to first error
 (customize-set-variable 'compilation-scroll-output 'first-error)
 
-(customize-set-variable 'flymake-start-on-flymake-mode t)
-(customize-set-variable 'flymake-start-on-save-buffer t)
-(customize-set-variable 'flymake-no-changes-timeout nil)
-(customize-set-variable 'flymake-proc-compilation-prevents-syntax-check t)
-(customize-set-variable 'flymake-wrap-around nil)
-(customize-set-variable 'elisp-flymake-byte-compile-load-path load-path)
-
-(with-eval-after-load 'flymake
-  (define-key flymake-mode-map (kbd "C-c ! n") 'flymake-goto-next-error)
-  (define-key flymake-mode-map (kbd "C-c ! p") 'flymake-goto-prev-error)
-  (define-key flymake-mode-map (kbd "C-c ! d") 'flymake-show-diagnostics-buffer))
+(require 'flymake)
+(setq flymake-start-on-save-buffer t)
+(setq elisp-flymake-byte-compile-load-path load-path)
+
+(define-key flymake-mode-map (kbd "C-c ! n") 'flymake-goto-next-error)
+(define-key flymake-mode-map (kbd "C-c ! p") 'flymake-goto-prev-error)
+(define-key flymake-mode-map (kbd "C-c ! d") 'flymake-show-diagnostics-buffer)
 
 (dolist (hook '(prog-mode-hook conf-mode-hook))
   (add-hook hook 'flymake-mode))