From eac50937e92330f627177d13fdec2581f90dc23e Mon Sep 17 00:00:00 2001 From: TEC Date: Tue, 20 Sep 2022 00:37:47 +0800 Subject: [PATCH] New package: simple-comment-markup --- .gitmodules | 3 +++ config.org | 23 +++++++++++++++++++++++ lisp/simple-comment-markup | 1 + 3 files changed, 27 insertions(+) create mode 160000 lisp/simple-comment-markup diff --git a/.gitmodules b/.gitmodules index 667d200..433e824 100644 --- a/.gitmodules +++ b/.gitmodules @@ -40,3 +40,6 @@ [submodule "ox-pluto"] path = lisp/ox-pluto url = https://github.com/tecosaur/ox-pluto.git +[submodule "simple-comment-markup"] + path = lisp/simple-comment-markup + url = https://git.tecosaur.net/tec/simple-comment-markup.git diff --git a/config.org b/config.org index 1c75523..27c7a24 100644 --- a/config.org +++ b/config.org @@ -3543,6 +3543,29 @@ lightened versions --- let's do that. (face-attribute 'default :foreground)))) #+end_src +*** Simple comment markup + +#+call: confpkg("!Pkg simple-comment-markup") + +I find that every now and then I sprinkle a little markup in code comments. Of +course, this doesn't get fortified as it's ultimately meaningless ... but it +would be nice if it was, just slightly. Surprisingly, I couldn't find a package +for this, so I made one. + +#+begin_src emacs-lisp :tangle packages.el +(package! simple-comment-markup :recipe (:local-repo "lisp/simple-comment-markup")) +#+end_src + +Let's use both basic Org markup and Markdown code backticks, to cover most +situations decently. + +#+begin_src emacs-lisp +(use-package! simple-comment-markup + :hook (prog-mode . simple-comment-markup-mode) + :config + (setq simple-comment-markup-set '(org markdown-code))) +#+end_src + *** Emojify #+call: confpkg("!Pkg emojify") diff --git a/lisp/simple-comment-markup b/lisp/simple-comment-markup new file mode 160000 index 0000000..f8ff868 --- /dev/null +++ b/lisp/simple-comment-markup @@ -0,0 +1 @@ +Subproject commit f8ff868684458941ace48eb1e46cdfb967b81c3d