gdritter repos dotfiles / 4c09305
Add visual-line-mode to several emacs modes Getty Ritter 4 years ago
1 changed file(s) with 5 addition(s) and 2 deletion(s). Collapse all Expand all
5252 ;; org-mode
5353
5454 (use-package org
55 :ensure t)
55 :ensure t
56 :init (add-hook 'org-mode-hook 'visual-line-mode))
5657
5758 (defun gdritter/add-meta-bindings ()
5859 (let ((map outline-minor-mode-map))
224225 (add-to-list 'auto-mode-alist '("\\.markdown\\'" . markdown-mode))
225226 (add-to-list 'auto-mode-alist '("\\.md\\'" . markdown-mode))
226227 (add-hook 'markdown-mode-hook 'visual-line-mode)))
228
229 (add-hook 'rst-mode-hook 'visual-line-mode)
227230
228231 (use-package pandoc-mode
229232 :ensure t
513516 (progn
514517 (set-fringe-mode
515518 (/ (- (frame-pixel-width)
516 (* 280 (frame-char-width)))
519 (* 240 (frame-char-width)))
517520 2))
518521 (mapcar (lambda (fb) (set-fringe-bitmap-face fb 'org-hide))
519522 fringe-bitmaps))))