Add a few more settings
This commit is contained in:
parent
c155c2b7c4
commit
91f56b7242
@ -130,6 +130,13 @@
|
|||||||
;; Always use ibuffer.
|
;; Always use ibuffer.
|
||||||
(defalias 'list-buffers 'ibuffer)
|
(defalias 'list-buffers 'ibuffer)
|
||||||
|
|
||||||
|
;; --------------------------------------------------------------------------
|
||||||
|
;; Address mode.
|
||||||
|
;; --------------------------------------------------------------------------
|
||||||
|
|
||||||
|
(add-hook 'prog-mode-hook 'goto-address-mode)
|
||||||
|
(add-hook 'text-mode-hook 'goto-address-mode)
|
||||||
|
|
||||||
;; --------------------------------------------------------------------------
|
;; --------------------------------------------------------------------------
|
||||||
;; Configure garbage collection.
|
;; Configure garbage collection.
|
||||||
;;
|
;;
|
||||||
|
@ -54,6 +54,47 @@
|
|||||||
:config
|
:config
|
||||||
(setq gud-chdir-before-run nil))
|
(setq gud-chdir-before-run nil))
|
||||||
|
|
||||||
|
(setq-default
|
||||||
|
;; Use gdb-many-windows by default.
|
||||||
|
gdb-many-windows t
|
||||||
|
;; Display source file containing main.
|
||||||
|
gdb-show-main t)
|
||||||
|
|
||||||
|
;; --------------------------------------------------------------------------
|
||||||
|
;; Setup compilation-mode used by `compile' command
|
||||||
|
;; --------------------------------------------------------------------------
|
||||||
|
|
||||||
|
(use-package compile
|
||||||
|
:bind
|
||||||
|
(("C-c c c" . compile)
|
||||||
|
("C-c c r" . recompile))
|
||||||
|
:config
|
||||||
|
(setq-default
|
||||||
|
;; Just save before compiling.
|
||||||
|
compilation-ask-about-save nil
|
||||||
|
;; Just kill old compile processes before starting the new one.
|
||||||
|
compilation-always-kill t
|
||||||
|
;; Automatically scroll to first error.
|
||||||
|
compilation-scroll-output 'first-error))
|
||||||
|
|
||||||
|
;; --------------------------------------------------------------------------
|
||||||
|
;; Makefile settings.
|
||||||
|
;; --------------------------------------------------------------------------
|
||||||
|
|
||||||
|
(defun makefile-mode-tabs ()
|
||||||
|
(whitespace-toggle-options '(tabs))
|
||||||
|
(setq indent-tabs-mode t))
|
||||||
|
|
||||||
|
(add-hook 'makefile-mode-hook 'makefile-mode-tabs)
|
||||||
|
|
||||||
|
;; --------------------------------------------------------------------------
|
||||||
|
;; Ediff.
|
||||||
|
;; --------------------------------------------------------------------------
|
||||||
|
|
||||||
|
(setq ediff-diff-options "-w"
|
||||||
|
ediff-split-window-function 'split-window-horizontally
|
||||||
|
ediff-window-setup-function 'ediff-setup-windows-plain)
|
||||||
|
|
||||||
;; --------------------------------------------------------------------------
|
;; --------------------------------------------------------------------------
|
||||||
;; Line numbers.
|
;; Line numbers.
|
||||||
;;
|
;;
|
||||||
|
Reference in New Issue
Block a user