Add visual-line-mode to several emacs modes
Getty Ritter
4 years ago
52 | 52 | ;; org-mode |
53 | 53 | |
54 | 54 | (use-package org |
55 |
:ensure t |
|
55 | :ensure t | |
56 | :init (add-hook 'org-mode-hook 'visual-line-mode)) | |
56 | 57 | |
57 | 58 | (defun gdritter/add-meta-bindings () |
58 | 59 | (let ((map outline-minor-mode-map)) |
224 | 225 | (add-to-list 'auto-mode-alist '("\\.markdown\\'" . markdown-mode)) |
225 | 226 | (add-to-list 'auto-mode-alist '("\\.md\\'" . markdown-mode)) |
226 | 227 | (add-hook 'markdown-mode-hook 'visual-line-mode))) |
228 | ||
229 | (add-hook 'rst-mode-hook 'visual-line-mode) | |
227 | 230 | |
228 | 231 | (use-package pandoc-mode |
229 | 232 | :ensure t |
513 | 516 | (progn |
514 | 517 | (set-fringe-mode |
515 | 518 | (/ (- (frame-pixel-width) |
516 |
(* 2 |
|
519 | (* 240 (frame-char-width))) | |
517 | 520 | 2)) |
518 | 521 | (mapcar (lambda (fb) (set-fringe-bitmap-face fb 'org-hide)) |
519 | 522 | fringe-bitmaps)))) |