diff options
| author | Brad Clawsie <brad@b7j0c.org> | 2026-11-02 10:25:05 -0600 |
|---|---|---|
| committer | Brad Clawsie <brad@b7j0c.org> | 2026-11-02 10:25:05 -0600 |
| commit | f3830a7fcf4ad674a134c3a133276a6091d8ee67 (patch) | |
| tree | 87c739b593b517abcc14faa659aa3111785e40b1 /emacs | |
| parent | 5a754c5310b169a770d330431958beaf7cf1cad3 (diff) | |
md
Diffstat (limited to 'emacs')
| -rw-r--r-- | emacs/init.el | 10 |
1 files changed, 9 insertions, 1 deletions
diff --git a/emacs/init.el b/emacs/init.el index e39346b..cceb1e4 100644 --- a/emacs/init.el +++ b/emacs/init.el @@ -16,6 +16,7 @@ (setq auto-save-default nil) (global-set-key (kbd "C-x w") #'kill-region) (electric-pair-mode 1) +(add-hook 'text-mode-hook #'visual-line-mode) ;; Eshell (setq eshell-prompt-function (lambda () "> ") @@ -33,7 +34,7 @@ ;; Project navigation (global-set-key (kbd "C-c p f") #'project-find-file) -;; Languages +;; Treesit Languages (require 'treesit) (setq major-mode-remap-alist @@ -54,6 +55,7 @@ (add-to-list 'auto-mode-alist '("\\.go\\'" . go-ts-mode)) (add-to-list 'auto-mode-alist '("\\.rs\\'" . rust-ts-mode)) +;; Perl (setq auto-mode-alist (append '(("\\.pl\\'" . cperl-mode) ("\\.pm\\'" . cperl-mode)) @@ -61,6 +63,12 @@ (add-to-list 'interpreter-mode-alist '("perl" . cperl-mode)) +;; Markdown +(use-package markdown-mode + :ensure t + :mode ("\\.md\\'" . gfm-mode) + :hook (markdown-mode . visual-line-mode)) + ;; packages: run M-x eval expression on each ;; ;; magit |
