From ca57fa596d2ba5c917f8e041d06ed3a286433fe1 Mon Sep 17 00:00:00 2001 From: Miquel Sabaté Solà Date: Mon, 20 Apr 2020 14:52:27 +0200 Subject: emacs: added a couple of optimizations with frame creation MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Miquel Sabaté Solà --- .emacs.d/init.org | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) (limited to '.emacs.d') diff --git a/.emacs.d/init.org b/.emacs.d/init.org index aae005e..eed9aba 100644 --- a/.emacs.d/init.org +++ b/.emacs.d/init.org @@ -147,7 +147,6 @@ require it here on the very top. #+END_SRC * General - ** GUI I like a minimalistic GUI. Because of this, almost all GUI elements have been @@ -195,6 +194,12 @@ Relative line numbers support is builtin since GNU Emacs 26.1: (global-set-key (kbd "C-c L") 'display-line-numbers-mode)) #+END_SRC +Do no resize the frame when a newly set font is different than the system's default. This is not affecting but it has some performance issues: around 0.3s when starting GNU Emacs in GUI mode, but negligible when in text mode. + +#+BEGIN_SRC elisp +(setq frame-inhibit-implied-resize t) +#+END_SRC + ** Basic editing configuration Use UTF-8 *always*. @@ -249,7 +254,6 @@ I'm using "Droid Sans Mono" simply because I've grown used to it. "Droid Sans Mono Dotted for Powerline-10") "The font to be used.") -(set-frame-font mssola-font) (add-to-list 'default-frame-alist `(font . ,mssola-font)) ; Emacs in daemon mode does not like `set-face-attribute` because this is only -- cgit v1.2.3