From 1d41c429f1ae7398cd123971134710c32c26b069 Mon Sep 17 00:00:00 2001 From: Aryadev Chavali Date: Mon, 15 Mar 2021 08:19:33 +0000 Subject: (Emacs)+set coding system and blinking-cursor --- Emacs/.config/emacs/config.org | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) (limited to 'Emacs/.config') diff --git a/Emacs/.config/emacs/config.org b/Emacs/.config/emacs/config.org index f951381..13ef0f4 100644 --- a/Emacs/.config/emacs/config.org +++ b/Emacs/.config/emacs/config.org @@ -25,6 +25,15 @@ Let's set all yes or no questions to single letter responses. #+begin_src emacs-lisp (fset 'yes-or-no-p 'y-or-n-p) #+end_src +** Coding system +Set the encoding to utf-8-unix by default. +#+begin_src emacs-lisp +(use-package emacs + :straight nil + :init + (setq-default buffer-file-coding-system 'utf-8-unix + save-buffer-coding-system 'utf-8-unix)) +#+end_src ** No littering Setup no-littering, which cleans up many of the default directories in Emacs. @@ -86,6 +95,15 @@ the scratch buffer some nice information about Emacs. initial-scratch-message (format ";; Emacs v%s\n" emacs-version) ring-bell-function 'ignore)) #+end_src + +Turn off blinking-cursor-mode as we will later be setting up hl-line, +which does a better job of indicating where the cursor is on screen. +#+begin_src emacs-lisp +(use-package frame + :straight nil + :config + (blink-cursor-mode 0)) +#+end_src * Emacs Mode-line Firstly, declare a variable for the separator between each module #+begin_src emacs-lisp -- cgit v1.2.3-13-gbd6f