summaryrefslogtreecommitdiff
path: root/.emacs.d
diff options
context:
space:
mode:
Diffstat (limited to '.emacs.d')
-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