aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorjason2018-07-19 11:20:15 -0600
committerjason2018-07-19 11:20:15 -0600
commita8efa558568fe2aea639e9754ae372735a86f6ac (patch)
treed5a88cedf1769bf771a9316389e4cefc36b91223
parentc068d810f70dcf2440abeee73a9e9efde509b13b (diff)
downloaddotemacs-a8efa558568fe2aea639e9754ae372735a86f6ac.tar.gz
dotemacs-a8efa558568fe2aea639e9754ae372735a86f6ac.zip
updates
-rw-r--r--config.org25
1 files changed, 24 insertions, 1 deletions
diff --git a/config.org b/config.org
index cd6bd0b..fc05145 100644
--- a/config.org
+++ b/config.org
@@ -482,8 +482,18 @@ contextual information
482 ("C-h k" . helpful-key))) 482 ("C-h k" . helpful-key)))
483#+END_SRC 483#+END_SRC
484* Languages 484* Languages
485** prog-mode
486Settings for all programming modes.
487#+BEGIN_SRC emacs-lisp
488(setq display-line-numbers-width 4)
489
490(defun my-prog-mode-setup ()
491 (display-line-numbers-mode))
492
493(add-hook 'prog-mode-hook 'my-prog-mode-setup)
494#+END_SRC
485** flycheck 495** flycheck
486[[https://github.com/flycheck/flycheck][flycheck]] is an on-the-fly syntax checker for many languages 496[[https://github.com/flycheck/flycheck][flycheck]] is an on-the-fly syntax checker for many languages.
487 497
488#+BEGIN_SRC emacs-lisp 498#+BEGIN_SRC emacs-lisp
489(use-package flycheck 499(use-package flycheck
@@ -601,6 +611,13 @@ go get -u golang.org/x/tools/cmd/goimports
601(add-hook 'json-mode-hook 611(add-hook 'json-mode-hook
602 (my-json-setup)) 612 (my-json-setup))
603#+END_SRC 613#+END_SRC
614** API Blueprint
615#+BEGIN_SRC emacs-lisp
616(use-package apib-mode
617 :ensure t
618 :config
619 (add-to-list 'auto-mode-alist '("\\.apib" . apib-mode)))
620#+END_SRC
604* org-mode 621* org-mode
605** Setup 622** Setup
606#+BEGIN_SRC emacs-lisp 623#+BEGIN_SRC emacs-lisp
@@ -630,6 +647,12 @@ go get -u golang.org/x/tools/cmd/goimports
630 ;; by +ATTR_*: width="200" 647 ;; by +ATTR_*: width="200"
631 org-image-actual-width '(400) 648 org-image-actual-width '(400)
632) 649)
650
651(defun my-org-mode-setup ()
652 (setq-local display-line-numbers-width 4))
653
654(add-hook 'org-mode-hook 'my-org-mode-setup)
655
633;; these extensions should be considered org-mode files 656;; these extensions should be considered org-mode files
634(add-to-list 'auto-mode-alist '("\\.\\(org\\|org\.gpg\\|org_archive\\)$" . org-mode)) 657(add-to-list 'auto-mode-alist '("\\.\\(org\\|org\.gpg\\|org_archive\\)$" . org-mode))
635 658