Advertisement
Guest User

markdown mode issue with rendering color

a guest
Jun 26th, 2018
185
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 3.49 KB | None | 0 0
  1. ;; https://blog.aaronbieber.com/2015/05/24/from-vim-to-emacs-in-fourteen-days.html
  2.  
  3. (require 'package)
  4.  
  5. (add-to-list 'package-archives '("org" . "http://orgmode.org/elpa/"))
  6. (add-to-list 'package-archives '("marmalade" . "http://marmalade-repo.org/packages/"))
  7. (add-to-list 'package-archives '("melpa" . "http://melpa.org/packages/"))
  8. (add-to-list 'package-archives '("melpa-stable" . "http://stable.melpa.org/packages/"))
  9.  
  10. (setq package-enable-at-startup nil)
  11. (package-initialize)
  12.  
  13. ;; https://www.gnu.org/software/emacs/manual/html_node/efaq/Turning-on-auto_002dfill-by-default.html
  14.  
  15. (setq-default auto-fill-function 'do-auto-fill)
  16.  
  17. ;; https://github.com/bnbeckwith/wc-mode
  18.  
  19. ;; Add the path to the repo
  20. (add-to-list 'load-path "~/emacs_stuff/wc-mode/")
  21. (require 'wc-mode)
  22. ;; Suggested setting
  23. (global-set-key "\C-cw" 'wc-mode)
  24.  
  25.  
  26. ;; https://github.com/syohex/emacs-mode-line-timer
  27.  
  28. ;; Add the path to the repo
  29. (add-to-list 'load-path "~/emacs_stuff/emacs-mode-line-timer")
  30. (require 'mode-line-timer)
  31. ;; Suggested setting
  32. (global-set-key "\C-ct" 'mode-line-timer-start)
  33. (global-set-key "\C-cp" 'mode-line-timer-stop)
  34. ;; https://emacs.stackexchange.com/questions/3488/define-controlshift-keys-without-kbd
  35.  
  36. ;; https://emacs.stackexchange.com/questions/27926/avoiding-overwriting-global-key-bindings
  37. ;; info on key bindings
  38.  
  39.  
  40. ;; https://www.emacswiki.org/emacs/AutoFillMode
  41. (add-hook 'text-mode-hook 'turn-on-auto-fill)
  42. (add-hook 'text-mode-hook 'flyspell-mode)
  43.  
  44. ;; for python
  45. ;; https://stackoverflow.com/questions/2515754/changing-python-interpreter-for-emacs?utm_medium=organic&utm_source=google_rich_qa&utm_campaign=google_rich_qa
  46.  
  47. (setq python-shell-interpreter "/home/eghx/anaconda3/bin/python")
  48.  
  49.  
  50. ;;https://emacs.stackexchange.com/questions/15097/how-do-i-run-a-function-on-start-up?utm_medium=organic&utm_source=google_rich_qa&utm_campaign=google_rich_qa
  51.  
  52. ;; https://stackoverflow.com/questions/2736087/eval-after-load-vs-mode-hook?utm_medium=organic&utm_source=google_rich_qa&utm_campaign=google_rich_qa
  53. ;;doesn't work
  54. ;;(eval-after-load "markdown-mode"
  55. ;; '(markdown-toggle-url-hiding))
  56.  
  57. ;; https://stackoverflow.com/questions/2736087/eval-after-load-vs-mode-hook?utm_medium=organic&utm_source=google_rich_qa&utm_campaign=google_rich_qa
  58.  
  59. (add-hook 'markdown-mode-hook 'markdown-toggle-url-hiding)
  60. ;; (custom-set-variables
  61. ;; ;; custom-set-variables was added by Custom.
  62. ;; ;; If you edit it by hand, you could mess it up, so be careful.
  63. ;; ;; Your init file should contain only one such instance.
  64. ;; ;; If there is more than one, they won't work right.
  65. ;; '(package-selected-packages (quote (markdown-mode))))
  66.  
  67. ;; (custom-set-faces
  68. ;; ;; custom-set-faces was added by Custom.
  69. ;; ;; If you edit it by hand, you could mess it up, so be careful.
  70. ;; ;; Your init file should contain only one such instance.
  71. ;; ;; If there is more than one, they won't work right.
  72. ;; '(markdown-header-face-1 ((t (:inherit markdown-header-face :foreground "medium blue" :height 1.0))))
  73. ;; '(markdown-header-face-2 ((t (:inherit markdown-header-face :foreground "medium blue" :height 1.0))))
  74. ;; '(markdown-header-face-3 ((t (:inherit markdown-header-face :foreground "dark orange" :height 1.0))))
  75. ;; '(markdown-header-face-4 ((t (:inherit markdown-header-face :foreground "dark cyan" :height 1.0)))))
  76.  
  77. ;; https://www.emacswiki.org/emacs/TransposeFrame
  78. ;; M-x transpose-frame
  79. ;; Add the path to the repo
  80. (add-to-list 'load-path "~/emacs_stuff/emacs-transpose-frame")
  81. (require 'transpose-frame)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement