<commit_before>;;; markdown-conf.el -- Settings for markdown-mode.
(eval-when-compile
  (require 'markdown-mode))

(setq markdown-command "pandoc -f markdown -t html"
      markdown-follow-wiki-link-on-enter nil)

(defun pjones:markdown-mode-hook ()
  "Set up key bindings and other crap for markdown-mode."
  (local-set-key (kbd "C-c C-o") 'markdown-follow-link-at-point)
  (whitespace-mode)

  ;; Files in /tmp that are *.txt are from my browser and most
  ;; websites don't like it when text you submit has newlines.
  (when (and buffer-file-name (string-match "^/tmp/.*\\.txt$" buffer-file-name))
    (whitespace-mode -1)
    (auto-fill-mode -1)
    (visual-line-mode)))

(add-hook 'markdown-mode-hook 'pjones:markdown-mode-hook)<commit_msg>Emacs: use orgmode tricks in markdown<commit_after>;;; markdown-conf.el -- Settings for markdown-mode.
(eval-when-compile
  (require 'markdown-mode)
  (require 'org)
  (require 'org-table))

;; Silence a compiler warning.
(declare-function orgtbl-mode "org-table")

;; Basic settings.
(setq markdown-command "pandoc -f markdown -t html"
      markdown-follow-wiki-link-on-enter nil)

(defun pjones:markdown-mode-hook ()
  "Set up key bindings and other crap for markdown-mode."
  (local-set-key (kbd "C-c C-o") 'markdown-follow-link-at-point)
  (whitespace-mode)
  (orgstruct-mode)
  (orgtbl-mode)

  ;; Files in /tmp that are *.txt are from my browser and most
  ;; websites don't like it when text you submit has newlines.
  (when (and buffer-file-name (string-match "^/tmp/.*\\.txt$" buffer-file-name))
    (whitespace-mode -1)
    (auto-fill-mode -1)
    (visual-line-mode)))

(add-hook 'markdown-mode-hook 'pjones:markdown-mode-hook)
{'fraction_non_alphanumeric': 0.1527035056446821, 'fraction_numerical': 0.0023767082590612004, 'mean_word_length': 3.5513513513513515, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 2, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '1654445', 'n_tokens_mistral': 625, 'n_tokens_neox': 596, 'n_words': 159}