From ea87574031c15455232795f51707fa0dad84b037 Mon Sep 17 00:00:00 2001 From: Ade Attwood Date: Sat, 10 Jul 2021 20:36:32 +0100 Subject: [PATCH] chore(emacs): set column width to 80 chars --- site-modules/core/files/emacs/src/development.el | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/site-modules/core/files/emacs/src/development.el b/site-modules/core/files/emacs/src/development.el index 08f7c9f..5f4a013 100644 --- a/site-modules/core/files/emacs/src/development.el +++ b/site-modules/core/files/emacs/src/development.el @@ -67,6 +67,16 @@ (with-eval-after-load 'flycheck (setq-default flycheck-disabled-checkers '(emacs-lisp-checkdoc))) +;; Set the default column width to 80. The default in emacs is 70 that is too small for me +(setq-default fill-column 80) +(setq-default display-fill-column-indicator-column 80) + + +;; Set the default line number style to relative so when they are turned on I +;; dont need to worry about that +(setq display-line-numbers-type 'relative) +(add-hook 'prog-mode-hook 'display-line-numbers-mode) + (use-package magit :ensure t :init