summaryrefslogtreecommitdiff
path: root/basic.el
diff options
context:
space:
mode:
authorJSDurand <mmemmew@gmail.com>2022-02-04 11:35:03 +0800
committerJSDurand <mmemmew@gmail.com>2022-02-04 11:35:03 +0800
commit76747a2aadd216596ee386e0025ab651a32f16fa (patch)
treedf4381c13ed1194ee82812540f2de513cfdb5b49 /basic.el
parentd96af7fa0231ed697fc3dfbaa42a40a45a93cd3d (diff)
basic: clean up and add language environment
* basic.el ("UTF-8"): set-language-environment should be enough to use the UTF-8 encoding by default. I think I don't need this setting in fact. But adding this won't make things worse, I suppose.
Diffstat (limited to 'basic.el')
-rw-r--r--basic.el15
1 files changed, 11 insertions, 4 deletions
diff --git a/basic.el b/basic.el
index 425edae..bfb8a87 100644
--- a/basic.el
+++ b/basic.el
@@ -1,5 +1,9 @@
;; -*- lexical-binding: t; -*-
+;;; Use UTF-8 by default
+
+(set-language-environment "UTF-8")
+
;;; No iconofications
(define-key global-map
@@ -17,12 +21,12 @@
(setq save-interprogram-paste-before-kill t)
-;;; Two spaces after the end of sentences mark the boundaries of
-;;; sentences clearer.
+;;; Two spaces after the end of sentences
+;; This marks the boundaries of sentences clearer.
(setq sentence-end-double-space t)
-;;; Setting the direction of the text can speed things up.
+;;; Setting the direction of the text can speed things up
(set-default 'bidi-paragraph-direction 'left-to-right)
(set 'bidi-inhibit-bpa t)
@@ -37,6 +41,9 @@
;;; disable some default modes
+;; This is just my personal preference: I prefer not to have the top
+;; of my Emacs show anything other than the buffer itself.
+
(tool-bar-mode -1)
(menu-bar-mode -1)
(scroll-bar-mode -1)
@@ -46,7 +53,7 @@
(fset 'yes-or-no-p 'y-or-n-p)
-;;; Recursive minibuffers is almost indispensable for me.
+;;; Recursive minibuffers is almost indispensable for me
(set 'enable-recursive-minibuffers t)