From e3ad906b3da4769e0fbeb1780092b279b8abff2e Mon Sep 17 00:00:00 2001 From: Julian T Date: Tue, 11 Oct 2022 23:14:32 +0200 Subject: emacs --- emacs/.emacs | 13 +++++++++++-- 1 file changed, 11 insertions(+), 2 deletions(-) (limited to 'emacs/.emacs') diff --git a/emacs/.emacs b/emacs/.emacs index dc0ff08..a095f54 100644 --- a/emacs/.emacs +++ b/emacs/.emacs @@ -1,7 +1,7 @@ (require 'package) (add-to-list 'package-archives '("melpa" . "https://melpa.org/packages")) -; (package-initialize) +(package-initialize) ; (package-refresh-contents) (mapcar (lambda (p) @@ -9,9 +9,13 @@ (package-install p)) ) (list 'evil 'haskell-mode)) +(setq evil-want-C-u-scroll t) (require 'evil) (evil-mode 1) +; (require 'evil-collection) +; (evil-collection-init) + (global-set-key (kbd "C-c l") #'org-store-link) (global-set-key (kbd "C-c a") #'org-agenda) (global-set-key (kbd "C-c c") #'org-capture) @@ -23,6 +27,7 @@ (setq show-paren-when-point-inside-paren 1) (setq backup-directory-alist '(("." . "~/.emacs_savefiles"))) + (setq indent-tabs-mode nil) (tool-bar-mode -1) (toggle-scroll-bar -1) @@ -33,7 +38,11 @@ (lambda () (evil-local-set-key 'normal (kbd "") 'org-cycle))) -(setq evil-want-C-u-scroll t) +;; Load email configuration +(defun load-if-exists (file) + (if (file-exists-p file) (load file) nil)) + +(load-if-exists "~/Common/gnus.el") (custom-set-variables ;; custom-set-variables was added by Custom. -- cgit v1.2.3