From 50cb725307057df169e633ec27f77598dc00f513 Mon Sep 17 00:00:00 2001 From: Elais Player Date: Sat, 13 Jun 2020 18:07:58 -0600 Subject: [PATCH] add markdown-mode Add a rudimentary markdown-mode package (so that we can write our README.md using emacs). --- guix.scm | 3 +++ init.el | 3 +++ lisp/shao-markdown.el | 32 ++++++++++++++++++++++++++++++++ 3 files changed, 38 insertions(+) create mode 100644 lisp/shao-markdown.el diff --git a/guix.scm b/guix.scm index b7671f4..67cbfeb 100644 --- a/guix.scm +++ b/guix.scm @@ -1,6 +1,7 @@ (use-modules (elais packages emacs-xyz) (gnu packages emacs-xyz) + (gnu packages haskell-xyz) (gnu packages shellutils) (guix build-system emacs) (guix download) @@ -45,6 +46,8 @@ desired.") emacs-envrc emacs-projectile ;; shao-snippets emacs-yasnippet + ;; shao-markdown + emacs-markdown-mode ghc-pandoc ;; ghost-eating-techniques emacs-yasnippet emacs-yasnippet-snippets emacs-no-littering ;; shaolin-movement diff --git a/init.el b/init.el index c71604f..6e40575 100644 --- a/init.el +++ b/init.el @@ -49,3 +49,6 @@ ;; Special Modes (require 'shao-vc) + +;; Language Major Modes +(require 'shao-markdown) diff --git a/lisp/shao-markdown.el b/lisp/shao-markdown.el new file mode 100644 index 0000000..2422911 --- /dev/null +++ b/lisp/shao-markdown.el @@ -0,0 +1,32 @@ +;;; shao-markdown.el --- shaolin-markdown -*- lexical-binding: t; -*- +;; +;; Copyright (C) 2020 Elais Player +;; +;; Author: Elais Player +;; Maintainer: Elais Player +;; Created: June 13, 2020 +;; Modified: June 13, 2020 +;; Version: 0.0.1 +;; Keywords: +;; Homepage: https://git.sr.ht/~elais/shaolin-emacs +;; Package-Requires: ((emacs YY) (cl-lib "0.5")) +;; +;; This file is not part of GNU Emacs. +;; +;;; Commentary: +;; +;; +;; +;;; Code: + +;; +;;; Packages + +(use-package markdown-mode + :mode ("\\.md'") + :custom + (markdown-asymmetric-header t) + (markdown-fontify-code-blocks-natively t)) + +(provide 'shao-markdown) +;;; shao-markdown.el ends here -- 2.45.2