aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMiquel Sabaté Solà <msabate@suse.com>2020-04-20 14:52:27 +0200
committerMiquel Sabaté Solà <msabate@suse.com>2020-04-20 18:51:19 +0200
commitca57fa596d2ba5c917f8e041d06ed3a286433fe1 (patch)
tree7f05a105c30b4b906ab9b4d8261390ba2636d323
parent6655ee4ecb325b1e7975eda308ce823bfdb30be4 (diff)
downloaddotfiles-ca57fa596d2ba5c917f8e041d06ed3a286433fe1.tar.gz
dotfiles-ca57fa596d2ba5c917f8e041d06ed3a286433fe1.zip
emacs: added a couple of optimizations with frame creation
Signed-off-by: Miquel Sabaté Solà <msabate@suse.com>
-rw-r--r--.emacs.d/init.org8
1 files changed, 6 insertions, 2 deletions
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