summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorThanos Apollo <[email protected]>2024-01-18 17:01:25 +0200
committerThanos Apollo <[email protected]>2024-01-18 17:01:25 +0200
commit4828dbb57bd7b01b46e8172388ba8da96bbefe3d (patch)
tree00296963e69522c777bc0dcc05dd7ebba1f80212
parentba0ebb029bf661ba571f3da44df69fa45f002b09 (diff)
emacs:(tools) Move tools from aesthetics to tools
-rw-r--r--.emacs.d/modules/thanos-tools.el22
1 files changed, 22 insertions, 0 deletions
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