diff options
| author | jao <jao@gnu.org> | 2026-09-05 17:36:36 +0100 |
|---|---|---|
| committer | jao <jao@gnu.org> | 2026-09-05 17:37:52 +0100 |
| commit | b576c28293fc07406455398cc74619b02a424b0f (patch) | |
| tree | db0a570708c5519c784a13613366e62a614c61f6 /init.el | |
| parent | 5d1e94064f016e358053b01d62f4e1628167f115 (diff) | |
| download | elibs-b576c28293fc07406455398cc74619b02a424b0f.tar.gz elibs-b576c28293fc07406455398cc74619b02a424b0f.tar.bz2 | |
using new user-lisp-dir for library files
Diffstat (limited to 'init.el')
| -rw-r--r-- | init.el | 18 |
1 files changed, 7 insertions, 11 deletions
@@ -37,9 +37,6 @@ (package-initialize) -(unless (package-installed-p 'use-package) - (package-refresh-contents) - (package-install 'use-package)) (require 'use-package) (use-package gnu-elpa-keyring-update :ensure t) @@ -94,10 +91,8 @@ (add-to-list 'load-path (expand-file-name "custom" jao-emacs-dir)) (add-to-list 'load-path "/usr/local/share/emacs/site-lisp/") -(let ((libd (expand-file-name "lib" jao-emacs-dir))) - (add-to-list 'load-path libd) - (dolist (f (directory-files libd t "^[^.]+$")) - (when (file-directory-p f) (add-to-list 'load-path f)))) +(setopt user-lisp-directory (expand-file-name "lib" jao-emacs-dir)) +(prepare-user-lisp) (defvar jao-info-dir (expand-file-name "info" jao-doc-dir)) (require 'info) @@ -1344,10 +1339,11 @@ (dolist (ext '("\\.md$" "\\.markdown$")) (add-to-list 'auto-mode-alist (cons ext 'markdown-mode))) -;; (use-package md-ts-mode -;; :ensure t) - -;; (md-ts-mode-enable-global) +;; built-in in emacs 31 +(use-package markdown-ts-mode + :mode ("\\.md\\'" "\\.mdx\\'" "\\.markdown\\'") + :config + (require 'markdown-ts-mode-x)) ;;;; TeX and LaTex (use-package tex-site |
