Emacs: comment fixes
parent
46b0fcfd52
commit
39d87f2480
|
@ -68,7 +68,7 @@
|
||||||
(beginning-of-buffer (goto-char (point-min)))))))
|
(beginning-of-buffer (goto-char (point-min)))))))
|
||||||
|
|
||||||
;; Line numbers
|
;; Line numbers
|
||||||
;; TODO: This mode is slow on big files when using beginning-of-buffer binding.
|
;; TODO: This mode is slow on big files when using beginning-of-buffer binding.
|
||||||
(autoload 'linum-mode "linum" "toggle line numbers on/off" t)
|
(autoload 'linum-mode "linum" "toggle line numbers on/off" t)
|
||||||
(add-hook 'find-file-hook (lambda () (linum-mode 1)))
|
(add-hook 'find-file-hook (lambda () (linum-mode 1)))
|
||||||
(define-key my-keys-minor-mode-map (kbd "C-<f5>") 'linum-mode)
|
(define-key my-keys-minor-mode-map (kbd "C-<f5>") 'linum-mode)
|
||||||
|
@ -88,10 +88,9 @@
|
||||||
;; Highlight selections -- not activated by default on old Emacs.
|
;; Highlight selections -- not activated by default on old Emacs.
|
||||||
(transient-mark-mode 1)
|
(transient-mark-mode 1)
|
||||||
|
|
||||||
;; Whitespace, tabs, and other frivolities.
|
;; Whitespace, tabs, and other frivolities. Highlight trailing whitespaces. For
|
||||||
;; Highlight trailing whitespaces. For programming languages only, so that it
|
;; programming languages only, so that it does not affect buffer like calendar
|
||||||
;; does not affect buffer like calendar and so on. There is no prog-mode-hook on
|
;; and so on. There is no prog-mode-hook on Emacs<24.
|
||||||
;; Emacs<24.
|
|
||||||
(mapcar
|
(mapcar
|
||||||
(lambda (mode-hook)
|
(lambda (mode-hook)
|
||||||
(add-hook
|
(add-hook
|
||||||
|
@ -104,7 +103,7 @@
|
||||||
;; end.
|
;; end.
|
||||||
; (add-hook 'before-save-hook 'delete-trailing-whitespace)
|
; (add-hook 'before-save-hook 'delete-trailing-whitespace)
|
||||||
(setq whitespace-style (quote (face trailing tab-mark)))
|
(setq whitespace-style (quote (face trailing tab-mark)))
|
||||||
;; Does not seem to work properly.
|
;; TODO: whitespace report-on-bogus does not seem to work properly.
|
||||||
; (setq whitespace-action '(report-on-bogus))
|
; (setq whitespace-action '(report-on-bogus))
|
||||||
|
|
||||||
;; Remove whitespaces on region, or whole file.
|
;; Remove whitespaces on region, or whole file.
|
||||||
|
@ -333,7 +332,7 @@ has errors and/or warnings."
|
||||||
'flymake-display-err-message-for-current-line)
|
'flymake-display-err-message-for-current-line)
|
||||||
|
|
||||||
;; Ediff split horizontally by default.
|
;; Ediff split horizontally by default.
|
||||||
;; TODO: does not seem to work.
|
;; TODO: ediff split does not seem to work.
|
||||||
(add-hook
|
(add-hook
|
||||||
'ediff-mode-hook
|
'ediff-mode-hook
|
||||||
(lambda ()
|
(lambda ()
|
||||||
|
|
Loading…
Reference in New Issue