hl-todo only in prog-mode, set gc-threshold to original value.

This commit is contained in:
tastytea 2019-03-22 04:08:47 +01:00
parent 660218da8c
commit a877ab0367
2 changed files with 7 additions and 7 deletions

12
init.el
View File

@ -1,5 +1,5 @@
;;; init.el --- tastytea's Emacs init file.
;;; Time-stamp: <2019-03-22 02:59:31 CET>
;;; Time-stamp: <2019-03-22 04:08:34 CET>
;;; Commentary:
;;; I am using this file with Emacs 26, but most of it will probably work with
@ -257,9 +257,8 @@
;; Highlight TODO, FIXME, NOTE and so on.
(use-package hl-todo
:defer 2
:config
(global-hl-todo-mode t))
:hook
(prog-mode . hl-todo-mode))
;; Better commenting
(use-package smart-comment
@ -595,7 +594,8 @@
(server-start))
)))
;; Set garbage collection threshold to 2 MiB
(setq gc-cons-threshold (* 2 1024 1024))
;; Set garbage collection threshold to original value
(setq gc-cons-threshold (car (get 'gc-cons-threshold 'standard-value)))
(provide 'init)
;;; init.el ends here

View File

@ -1,2 +1,2 @@
127.0.0.1:51313 10599
127.0.0.1:51313 29474
phahw2ohVoh0oopheish7IVie9desh8aequeenei3uo8wahShe%thuadaeNa4ieh