#+TITLE: Dev - Format #+AUTHOR: Juan Placencia * Package Define format dev package. #+BEGIN_SRC emacs-lisp (use-package emacs :after uno-dev :config (provide 'uno-dev-format)) #+END_SRC * Default Formatting #+BEGIN_SRC emacs-lisp (use-package emacs :after uno-dev-format :custom (indent-tabs-mode nil) (tab-width 2)) #+END_SRC * Smartparens Helpers are borrowed from Spacemacs. #+BEGIN_SRC emacs-lisp (use-package smartparens :after uno-dev-format :custom (sp-show-pair-delay 0.2) (sp-show-pair-from-inside t) (sp-cancel-autoskip-on-backward-movement nil) (sp-highlight-pair-overlay nil) (sp-highlight-wrap-overlay nil) (sp-highlight-wrap-tag-overlay nil) :hook ((comint-mode uno-prog-mode) . smartparens-strict-mode) (minibuffer-setup . uno/dev/format/minibuffer-smartparens) :init (defun uno/dev/format/minibuffer-smartparens () "Enable `smartparens-mode' in the minibuffer, during `eval-expression'." (when (or (eq this-command 'eval-expression) (eq this-command 'eldoc-eval-expression)) (smartparens-strict-mode 1))) :config (show-smartparens-global-mode 1) (sp-local-pair 'minibuffer-inactive-mode "'" nil :actions nil)) #+END_SRC