From 26c2dd6e3b7c3290629600929a0252e3f1b3aa5b Mon Sep 17 00:00:00 2001 From: Matthew Lemon Date: Thu, 24 Nov 2022 10:54:32 +0000 Subject: formatting changes --- init.el | 81 +++++++++++++++++++++++++++++++++-------------------------------- 1 file changed, 41 insertions(+), 40 deletions(-) (limited to 'init.el') diff --git a/init.el b/init.el index ce37e80..551ff0e 100644 --- a/init.el +++ b/init.el @@ -72,10 +72,11 @@ Restart works only on graphic display." ;; org and notmuch (add-to-list 'load-path "~/.emacs.d/lisp") + (require 'org-notmuch) (org-link-set-parameters "notmuch" - :follow 'org-notmuch-open - :store 'org-notmuch-store-link) + :follow 'org-notmuch-open + :store 'org-notmuch-store-link) ;; set custom file (setq custom-file (concat user-emacs-directory "custom.el")) @@ -183,44 +184,44 @@ Restart works only on graphic display." (add-to-list 'default-frame-alist '(font . "Hack-10"))))) ;; theme - (use-package gruber-darker-theme - :ensure t - :config - (load-theme 'gruber-darker t)) - - (setq display-line-numbers-type `relative) - (setq undo-limit 8000000) ; raise limit to 80Mb - (setq truncate-string-ellipsis "…") ; better than using dots - (setq scroll-preserve-screen-position 'always) ; experimental - (setq scroll-margin 3) ; bit of space - - - ;; calendar proper Monday start - (setq calendar-week-start-day 1) - (setq calendar-date-style (quote european)) - - ;; Handling tabs (for programming) - (setq-default tab-width 2) - (setq-default tab-width 2 indent-tabs-mode nil) - (setq-default indent-tabs-mode nil) - (setq js-indent-level 2) - (setq python-indent 2) - (setq css-indent-offset 2) - (add-hook 'sh-mode-hook - (lambda () - (setq sh-basic-offset 2 - sh-indentation 2))) - (setq web-mode-markup-indent-offset 2) - - ;; Highlight matching parens - (show-paren-mode t) - - ;; Stop C-z suspending emacs - (global-set-key (kbd "C-z") 'nil) - - ;; encoding - (prefer-coding-system 'utf-8) - (setq coding-system-for-read 'utf-8) +(use-package gruber-darker-theme + :ensure t + :config + (load-theme 'gruber-darker t)) + +(setq display-line-numbers-type `relative) +(setq undo-limit 8000000) ; raise limit to 80Mb +(setq truncate-string-ellipsis "…") ; better than using dots +(setq scroll-preserve-screen-position 'always) ; experimental +(setq scroll-margin 3) ; bit of space + + +;; calendar proper Monday start +(setq calendar-week-start-day 1) +(setq calendar-date-style (quote european)) + +;; Handling tabs (for programming) +(setq-default tab-width 2) +(setq-default tab-width 2 indent-tabs-mode nil) +(setq-default indent-tabs-mode nil) +(setq js-indent-level 2) +(setq python-indent 2) +(setq css-indent-offset 2) +(add-hook 'sh-mode-hook + (lambda () + (setq sh-basic-offset 2 + sh-indentation 2))) +(setq web-mode-markup-indent-offset 2) + +;; Highlight matching parens +(show-paren-mode t) + +;; Stop C-z suspending emacs +(global-set-key (kbd "C-z") 'nil) + +;; encoding +(prefer-coding-system 'utf-8) +(setq coding-system-for-read 'utf-8) (setq coding-system-for-write 'utf-8) ;; PACKAGES -- cgit v1.2.3