From 76747a2aadd216596ee386e0025ab651a32f16fa Mon Sep 17 00:00:00 2001 From: JSDurand Date: Fri, 4 Feb 2022 11:35:03 +0800 Subject: 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. --- basic.el | 15 +++++++++++---- 1 file changed, 11 insertions(+), 4 deletions(-) (limited to 'basic.el') 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) -- cgit v1.2.3-18-g5258