Commit b6ba2f1f authored by marc0s's avatar marc0s

style: linter checks

parent bb7addec
......@@ -76,6 +76,7 @@
(setq fill-column 79)
;; use tabs of 4 units width
(setq tab-width 4)
(defvar c-basic-offset)
(setq c-basic-offset 4)
;; see matching parentheses and company
(electric-pair-mode 1)
......@@ -131,6 +132,8 @@ work here..."
:init
(add-hook 'coffee-mode-hook 'marc0s/coffee-mode-hook))
(defvar company-clang-executable)
(defvar company-dabbrev-downcase)
(use-package company
:ensure t
:diminish "Co"
......@@ -678,7 +681,7 @@ The destination file is derived from the CURRENT buffer file name,
(defun bury-compile-buffer-if-successful (buffer string)
"Bury a compilation buffer if succeeded without warnings "
"Bury a compilation BUFFER if succeeded without warnings."
(when (and
(buffer-live-p buffer)
(string-match "compilation" (buffer-name buffer))
......@@ -694,21 +697,21 @@ The destination file is derived from the CURRENT buffer file name,
buffer)))
(add-hook 'compilation-finish-functions 'bury-compile-buffer-if-successful)
(define-minor-mode compile-on-save-mode
"Minor mode to automatically call `recompile' whenever the
current buffer is saved. When there is ongoing compilation,
nothing happens."
:lighter " CoS"
(if compile-on-save-mode
(progn (make-local-variable 'after-save-hook)
(add-hook 'after-save-hook 'compile-on-save-start nil t))
(kill-local-variable 'after-save-hook)))
;; (define-minor-mode compile-on-save-mode
;; "Minor mode to automatically call `recompile' whenever the
;; current buffer is saved. When there is ongoing compilation,
;; nothing happens."
;; :lighter " CoS"
;; (if compile-on-save-mode
;; (progn (make-local-variable 'after-save-hook)
;; (add-hook 'after-save-hook 'compile-on-save-start nil t))
;; (kill-local-variable 'after-save-hook)))
;; Scroll follows compilation output
(setq compilation-scroll-output t)
(defun marc0s/flycheck-from-buffer-start ()
"Moves point to buffer start before calling flycheck-next-error"
"Move point to buffer start before calling flycheck-next-error"
(interactive)
(save-excursion)
(goto-char (point-min))
......@@ -767,3 +770,5 @@ Version 2017-03-12"
(add-hook 'scss-mode-hook 'xah-syntax-color-hex)
(add-hook 'html-mode-hook 'xah-syntax-color-hex)
(provide 'init)
;;; init.el ends here
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment