diff options
Diffstat (limited to 'emacs/.emacs.d/init/ycp-markup.el')
| -rw-r--r-- | emacs/.emacs.d/init/ycp-markup.el | 25 |
1 files changed, 22 insertions, 3 deletions
diff --git a/emacs/.emacs.d/init/ycp-markup.el b/emacs/.emacs.d/init/ycp-markup.el index 6a6e8b8..68b5459 100644 --- a/emacs/.emacs.d/init/ycp-markup.el +++ b/emacs/.emacs.d/init/ycp-markup.el @@ -71,7 +71,7 @@ (my-package wiki (my-keybind wiki-mode-map "C-'" #'my-wiki-grok-wikipedia) - (my-setq-from-local wiki-sites) + (my-setq-from-local wiki-sites wiki-local-dir) (wiki-define-site-commands) (add-to-list 'browse-url-handlers `(wiki-engine-entry-url-p @@ -105,7 +105,8 @@ ;; No fill, so it requires visual line mode to look nice (setq nov-text-width t) (add-hook 'nov-mode-hook 'visual-line-mode) - (add-hook 'nov-mode-hook 'follow-mode) + ;; interfering with dbus + ;; (add-hook 'nov-mode-hook 'follow-mode) (add-hook 'nov-mode-hook (lambda () (setq line-spacing .1))) (add-hook 'nov-post-html-render-hook 'my-nov-set-margins) @@ -114,7 +115,16 @@ (my-override nov-scroll-up) (my-keybind nov-mode-map "Q" #'my-nov-copy-buffer-file-with-staging - "i" #'imenu) + "i" #'imenu + "f" #'nov-scroll-up + "b" #'nov-scroll-down + "F" #'my-nov-skim-forward + "B" #'my-nov-skim-backward) + (add-to-list 'nov-shr-rendering-functions '(span . my-nov-render-span)) + (add-to-list 'nov-shr-rendering-functions '(ol . my-nov-render-ol)) + (add-hook 'nov-mode-hook + (lambda () + (add-hook 'post-command-hook #'my-nov-update-mode-line nil t))) ) ;;; json-mode @@ -125,5 +135,14 @@ (add-hook 'json-mode-hook 'my-json-setup-hook) ) +(my-package mhtml-mode + (my-keybind mhtml-mode-map + "C-c C-v" #'my-html-render)) + +(my-package my-markup + (:delay 15) + (add-to-list 'auto-mode-alist '("\\.html\\'" . htmlv-mode)) + ) + (provide 'ycp-markup) ;;; ycp-markup.el ends here |
