From 10b9bb3adbcdb821d5907b6f1a7db07672985235 Mon Sep 17 00:00:00 2001 From: Thomas Ruoff Date: Sun, 11 Aug 2019 21:57:25 +0200 Subject: [PATCH] even more --- emacs/.emacs.d/custom.el | 2 +- emacs/.emacs.d/init.el | 45 ++++++++++++++++++++++++++++++++++++++++ 2 files changed, 46 insertions(+), 1 deletion(-) diff --git a/emacs/.emacs.d/custom.el b/emacs/.emacs.d/custom.el index 08f5309..160e48f 100644 --- a/emacs/.emacs.d/custom.el +++ b/emacs/.emacs.d/custom.el @@ -5,7 +5,7 @@ ;; If there is more than one, they won't work right. '(package-selected-packages (quote - (evil-magit projectile evil-leader use-package evil-surround evil-escape)))) + (evil-org org-bullets evil-magit projectile evil-leader use-package evil-surround evil-escape)))) (custom-set-faces ;; custom-set-faces was added by Custom. ;; If you edit it by hand, you could mess it up, so be careful. diff --git a/emacs/.emacs.d/init.el b/emacs/.emacs.d/init.el index 007353e..bf131f0 100644 --- a/emacs/.emacs.d/init.el +++ b/emacs/.emacs.d/init.el @@ -86,5 +86,50 @@ :config (evil-mode 1)) +(use-package org + :ensure t + :defer t + :diminish org-indent-mode + :config + (let ((main-org-file "~/.emacs.d/todo/todo.org")) + (setq org-agenda-files (list main-org-file)) + (setq org-default-notes-file main-org-file) + (setq org-capture-templates + '(("i" "Idea" entry (file+headline main-org-file "Half-Baked Ideas") + "* TODO %?") + ("j" "Jira" entry (file+headline main-org-file "Jiras") + "* TODO %^{prompt}%? :%\\1:\n %c") + ("l" "Listing" entry (file+headline main-org-file "Listings") + "* TODO opt%^{prompt}%? :opp%\\1:\n %c") + ("t" "Todo" entry (file+headline main-org-file "Tasks") + "* TODO %?")))) + + (add-hook 'org-mode-hook + (lambda() + (org-indent-mode t))) + + ;; syntax highlighting for code blocks + (setq org-src-fontify-natively t) + + (setq org-use-fast-todo-selection t)) + +(use-package org-bullets + :ensure t + :commands (org-bullets-mode) + :init (add-hook 'org-mode-hook (lambda () (org-bullets-mode 1)))) + +(use-package evil-org + :ensure t + :after org + :hook ((org-mode . evil-org-mode) + (evil-org-mode . evil-org-set-key-theme)) + :config + (require 'evil-org-agenda) + (evil-org-agenda-set-keys)) + + +;; replace emacs M-x with helm-M-x +(global-set-key (kbd "M-x") 'helm-M-x) + (setq custom-file "~/.emacs.d/custom.el") (load custom-file)