From 4828dbb57bd7b01b46e8172388ba8da96bbefe3d Mon Sep 17 00:00:00 2001 From: Thanos Apollo Date: Thu, 18 Jan 2024 17:01:25 +0200 Subject: emacs:(tools) Move tools from aesthetics to tools --- .emacs.d/modules/thanos-tools.el | 22 ++++++++++++++++++++++ 1 file changed, 22 insertions(+) (limited to '.emacs.d') diff --git a/.emacs.d/modules/thanos-tools.el b/.emacs.d/modules/thanos-tools.el index 3a45a88..36bc511 100644 --- a/.emacs.d/modules/thanos-tools.el +++ b/.emacs.d/modules/thanos-tools.el @@ -32,7 +32,22 @@ (require 'orderless) (require 'dabbrev) +;; Find definitions +(global-set-key (kbd "M-.") 'xref-find-definitions) +(global-set-key (kbd "C-c L") 'display-line-numbers-mode) + +;; electric pair +(electric-pair-mode 1) + +;; auto insert templates +(auto-insert-mode 1) + +;; flycheck +(require 'flycheck) +(global-flycheck-mode) + ;; Tramp +(require 'tramp) (setf tramp-default-method "ssh") ;; sudo-edit @@ -128,6 +143,8 @@ (add-hook 'emacs-lisp-mode-hook #'rainbow-delimiters-mode) (setf flycheck-emacs-lisp-load-path 'inherit) +(add-hook 'emacs-lisp-mode-hook 'prettify-symbols-mode) + ;; Disable checkdoc flycheck for org-src buffers (add-hook 'org-src-mode-hook #'(lambda () (flycheck-disable-checker 'emacs-lisp-checkdoc))) @@ -148,7 +165,12 @@ (add-to-list 'auto-mode-alist '("\\.json'" . json-mode)) ;; Markdown +(require 'markdown-mode) (add-hook 'markdown-mode-hook #'(lambda () (flyspell-mode))) +(setq markdown-header-scaling t + markdown-command "multimarkdown") + +(add-to-list 'auto-mode-alist '("\\.md\\'" . gfm-mode)) (provide 'thanos-tools) ;;; thanos-tools.el ends here -- cgit v1.2.3