summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGravatar Tom Willemse2014-04-20 14:38:17 +0200
committerGravatar Tom Willemse2014-04-20 14:42:07 +0200
commitf6c4ff479528d2807f59dbae700d9f29f4169edd (patch)
treeb01ed25fdcd74aefc03d000ac4bde06ac550dff1
parent9a646551ad477f19a0536d9055b149ba4e586cf7 (diff)
downloademacs-f6c4ff479528d2807f59dbae700d9f29f4169edd.tar.gz
emacs-f6c4ff479528d2807f59dbae700d9f29f4169edd.zip
Move frame configuration to init.org
-rw-r--r--.emacs.d/init.el7
-rw-r--r--.emacs.d/init.org57
2 files changed, 50 insertions, 14 deletions
diff --git a/.emacs.d/init.el b/.emacs.d/init.el
index e06caa6..6c37f23 100644
--- a/.emacs.d/init.el
+++ b/.emacs.d/init.el
@@ -910,13 +910,6 @@ from myaethon2.core.decorators import (
;;;; Unconditional settings
-(setq default-frame-alist
- `((border-width . 0)
- (internal-border-width . 0)
- (vertical-scroll-bars . nil)
- (menu-bar-lines . nil)
- (tool-bar-lines . nil)
- (font . "Fantasque Sans Mono:pixelsize=17")))
(setq frame-title-format '(:eval (concat "emacs: " (buffer-name))))
(setq message-log-max 1000)
(setq redisplay-dont-pause t)
diff --git a/.emacs.d/init.org b/.emacs.d/init.org
index f1f7243..a8fd87f 100644
--- a/.emacs.d/init.org
+++ b/.emacs.d/init.org
@@ -150,7 +150,7 @@
(setq-default cursor-in-non-selected-windows nil)
#+END_SRC
-** Truncate lines
+** Long lines
Sometimes, very long lines can't help but show up in code. The
default of wrapping lines around to the next line and showing an
@@ -161,6 +161,38 @@
(setq-default truncate-lines t)
#+END_SRC
+** The default frame
+
+ Set the internal border width to 0. This makes a small difference,
+ with my current setup it causes my window's width to increase from
+ 120 to 121. Small, I know, but I'm very greedy when it comes to
+ screen space.
+
+ #+BEGIN_SRC emacs-lisp
+ (setq default-frame-alist
+ `((internal-border-width . 0)))
+ #+END_SRC
+
+** A fantastic font
+
+ I've tried several fonts, and all of them were nice, but came up
+ short on some way. Some didn't have italic variants, some had
+ dotted zeroes instead of dashed zeroes, some even had entirely
+ clear zeroes which make them look like ~O~'s, others had
+ boring-looking parentheses[fn:4]. Not Fantasque Sans Mono[fn:5][fn:6], it
+ is awesome. If your web browser supports web fonts you should also
+ see it used in the code blocks here.
+
+ Normally the =set-frame-font= sets the font only for the current
+ frame. However, passing =t= as the 3rd argument it makes it apply the
+ font to all frames, and makes Emacs think it was set for the
+ current session in customize so that future frames will also use
+ this font.
+
+ #+BEGIN_SRC emacs-lisp
+ (set-frame-font "Fantasque Sans Mono:pixelsize=17" nil t)
+ #+END_SRC
+
* Add org-mode appointments to the diary
Diary offers reminders, which can be useful when scheduling
@@ -266,7 +298,7 @@
One of the caveats of using two (or more) languages in a single
installation of Gnus is that ispell sometimes gets confused. Having
- come across a stackoverflow question[fn:4] about just this subject
+ come across a stackoverflow question[fn:7] about just this subject
it was easy to modify the source code posted there to come up with
this.
@@ -511,7 +543,7 @@
is not a big-enough visual difference to make code read nicely, in
my opinion.
- So far, I have quite enjoyed four spaces for most code[fn:5].
+ So far, I have quite enjoyed four spaces for most code[fn:8].
#+BEGIN_SRC emacs-lisp
(setq-default tab-width 4)
@@ -521,7 +553,7 @@
I don't really use the Emacs customization interface much, but I
have used it as a kind-of persistent datastore, specifically for
- desktop-registry[fn:6]. I do very much like the idea of it, it's a
+ desktop-registry[fn:9]. I do very much like the idea of it, it's a
very cool thing to have. I also use ~custom.el~ for storing some
things that I really can't store in a public viewing location like
this file or the git repository it lives in.
@@ -563,8 +595,19 @@
[fn:3] It works fine for me with something like jabber chats and the
like.
-[fn:4] http://stackoverflow.com/questions/22175214/automatically-switch-language-in-gnus-depending-on-recipient
+[fn:4] I like to program in Lisp, parentheses are important to me!
+ Parentheses should be nice and round, not almost like bars!
+
+[fn:5] https://github.com/belluzj/fantasque-sans
+
+[fn:6] Used to be Cosmic Sans Neue Mono, the name changed because
+ people misread it as "Comic" (me included, which was the original
+ reason I checked it out, for laughs) and hate Comic Sans, and also
+ because there was already a Cosmic Sans font as well, which could
+ cause confusion.
+
+[fn:7] http://stackoverflow.com/questions/22175214/automatically-switch-language-in-gnus-depending-on-recipient
-[fn:5] I still use 2 spaces for some languages, like HTML.
+[fn:8] I still use 2 spaces for some languages, like HTML.
-[fn:6] http://code.ryuslash.org/desktop-registry/about/
+[fn:9] http://code.ryuslash.org/desktop-registry/about/