Load realgud only on demand.

This commit is contained in:
tastytea 2019-03-30 12:29:09 +01:00
parent b8fd7fc71c
commit 1ab7fdb5bd

16
init.el
View File

@ -1,5 +1,5 @@
;;; init.el --- tastytea's Emacs init file.
;;; Time-stamp: <2019-03-30 00:22:42 CET>
;;; Time-stamp: <2019-03-30 12:28:53 CET>
;;; Commentary:
;;; I am using this file with Emacs 26, but most of it will probably work with
@ -62,7 +62,7 @@
(if (member (system-name) '("steuerbeamter" "azimuth" "localhost"))
(setq slow-computer t)) ; localhost is schnibble
;; Show manpages and error messages from compilers in english.
;; Show manpages and error messages from compilers in English.
(setenv "LANG" "en_US.utf8")
;;;;;;;;;;;;;;;;;;;; Configure some essential things ;;;;;;;;;;;;;;;;;;;;;;;;;;;
@ -269,15 +269,17 @@
:config
(defun my/load-realgud ()
(load-library "realgud"))
:hook
(c++-mode . my/load-realgud)
(c-mode . my/load-realgud))
:bind
(:map c++-mode-map
("C-c g" . my/load-realgud))
(:map c-mode-map
("C-c g" . my/load-realgud)))
;; Highlight TODO, FIXME, NOTE and so on.
(use-package hl-todo
:bind
(:map hl-todo-mode-map
("C-c t" . hl-todo-occur))
("C-c t" . hl-todo-occur))
:hook
(prog-mode . hl-todo-mode))
@ -583,7 +585,7 @@
(use-package midnight
:defer 5
:init
(setq midnight-delay 0 ; 0 seconds after "midnight"
(setq midnight-delay 30 ; 30 seconds after "midnight"
midnight-period (* 1 60 60)) ; Clean every 1 hours.
;; FIXME: midnight-period has no or not the desired effect.
:custom