 ;; Improved help  
 (use-package helpful)
 
-;;; Tools
+;;;; Tools
+
+;;; ORG
+
+;; https://emacs.stackexchange.com/questions/10029/org-mode-how-to-create-an-org-mode-markup-keybinding
+
+(defvar org-electric-pairs '((?\* . ?\*) (?/ . ?/) (?= . ?=)
+                             (?\_ . ?\_) (?~ . ?~) (?+ . ?+)) "Electric pairs for org-mode.")
+
+(defun icot/org-add-electric-pairs ()
+  (setq-local electric-pair-pairs (append electric-pair-pairs org-electric-pairs))
+  (setq-local electric-pair-text-pairs electric-pair-pairs))
+
 (use-package org
   :defer t
   :init
+  (setq org-startup-with-inline-images t)
   (setq org-directory "~/Nextcloud/myorg/")
-  (setq org-agenda-files `(,org-directory)))
+  (setq org-agenda-files `(,org-directory))
+  :hook (org-mode . icot/org-add-electric-pairs))
 			  
+;;;
 
 (use-package magit
   :defer t)


;; evil-snipe: TODO check evil f/F/t/T

;;; Projectile
(use-package projectile
  :diminish projectile-mode
  :custom ((projectile-completion-system 'ivy))

;; Some functionality uses this to identify you, e.g. GPG configuration, email
;; clients, file templates and snippets.
(setq user-full-name "Ignacio Coterillo"
      user-mail-address "ignacio.coterillo.coz@cern.ch")

;; Add Repositories
(require 'package)
