From 1ab7fdb5bde530b2dda06636765cca71d3eee05b Mon Sep 17 00:00:00 2001 From: tastytea Date: Sat, 30 Mar 2019 12:29:09 +0100 Subject: [PATCH] Load realgud only on demand. --- init.el | 16 +++++++++------- 1 file changed, 9 insertions(+), 7 deletions(-) diff --git a/init.el b/init.el index 8ba19cc..bdc0916 100644 --- a/init.el +++ b/init.el @@ -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