diff --git a/lang/markdown.el b/lang/markdown.el index a387aac..ccd1345 100644 --- a/lang/markdown.el +++ b/lang/markdown.el @@ -22,6 +22,7 @@ (define-key markdown-mode-map (kbd "C-c C-v") 'markdown-preview)) (add-hook 'markdown-mode-hook 'activate-markdown-mode) +(add-hook 'markdown-mode-hook 'display-line-numbers-mode) (provide '+custom-lang-markdown) ;;; markdown.el ends here diff --git a/pkg/base.el b/pkg/base.el index 14bc5f6..8ee1534 100644 --- a/pkg/base.el +++ b/pkg/base.el @@ -63,8 +63,9 @@ ; Do not create .#foo.file lock files (setq create-lockfiles nil) -; Enable line numbers and show cursors position -(global-display-line-numbers-mode t) +;; Enable line numbers and show cursors position +(add-hook 'prog-mode-hook 'display-line-numbers-mode) +;; (global-display-line-numbers-mode t) (column-number-mode t) ;; Turn off sounds