From 839e649afca9cc7405469b459d3a585c863427aa Mon Sep 17 00:00:00 2001 From: Julio Biason Date: Wed, 5 Feb 2020 18:06:06 -0300 Subject: [PATCH] Emacs configuration --- emacs/emacs | 30 +++++++++++++++++++++++++----- 1 file changed, 25 insertions(+), 5 deletions(-) diff --git a/emacs/emacs b/emacs/emacs index 1e54d06..1640231 100644 --- a/emacs/emacs +++ b/emacs/emacs @@ -8,6 +8,10 @@ ;; '("melpa" . "http://stable.melpa.org/packages/") ; many packages won't show if using stable '("melpa" . "http://melpa.milkbox.net/packages/") t) +(add-to-list + 'package-archives + '("org" . "https://orgmode.org/elpa/") + t) ;; Added by Package.el. This must come before configurations of ;; installed packages. Don't delete this line. If you don't want it, @@ -28,6 +32,17 @@ :config (evil-mode 1)) +; Org-mode +(use-package org + :ensure t) +(global-set-key "\C-cl" 'org-store-link) +(global-set-key "\C-ca" 'org-agenda) +(global-set-key "\C-cb" 'org-iswtichb) + +; Markdown mode +(use-package markdown-mode + :ensure t) + ; install goto last change (opens the file in the last position) (use-package goto-last-change :ensure t) @@ -46,22 +61,25 @@ :ensure t) ; colorscheme -(use-package monokai-theme - :ensure t) +; (use-package monokai-theme +; :ensure t) +(use-package nord-theme + :ensure t) (custom-set-variables ;; custom-set-variables was added by Custom. ;; If you edit it by hand, you could mess it up, so be careful. ;; Your init file should contain only one such instance. ;; If there is more than one, they won't work right. - '(custom-enabled-themes (quote (monokai))) + '(custom-enabled-themes (quote (nord))) '(custom-safe-themes (quote - ("039eb505cec29b4521ce5ecf5abf523492005f0c65d0640f62e53e2d3068b393" "6c0a087a4f49c04d4002393ffd149672f70e4ab38d69bbe8b39059b61682b61c" default))) + ("bd7b7c5df1174796deefce5debc2d976b264585d51852c962362be83932873d9" "039eb505cec29b4521ce5ecf5abf523492005f0c65d0640f62e53e2d3068b393" "6c0a087a4f49c04d4002393ffd149672f70e4ab38d69bbe8b39059b61682b61c" default))) '(inhibit-startup-screen t) + '(org-agenda-files (quote ("~/Documents/index.org"))) '(package-selected-packages (quote - (rust-mode evil-quickscope evil-tabs ## scala-mode evil-leader editorconfig diff-hl neotree helm-ag helm-projectile projectile helm hlinum fill-column-indicator evil monokai-theme cider)))) + (markdown-mode org-evil org-link-minor-mode rust-mode evil-quickscope evil-tabs ## scala-mode evil-leader editorconfig diff-hl neotree helm-ag helm-projectile projectile helm hlinum fill-column-indicator evil monokai-theme cider)))) (custom-set-faces ;; custom-set-faces was added by Custom. ;; If you edit it by hand, you could mess it up, so be careful. @@ -158,6 +176,8 @@ "q" 'kill-buffer-and-window "w" 'save-buffer "t" 'neotree-toggle + "o" 'org-capture + "O" 'org-agenda ) ; answer questions with 'y' instead of full 'yes'