From a8efa558568fe2aea639e9754ae372735a86f6ac Mon Sep 17 00:00:00 2001 From: jason Date: Thu, 19 Jul 2018 11:20:15 -0600 Subject: updates --- config.org | 25 ++++++++++++++++++++++++- 1 file changed, 24 insertions(+), 1 deletion(-) diff --git a/config.org b/config.org index cd6bd0b..fc05145 100644 --- a/config.org +++ b/config.org @@ -482,8 +482,18 @@ contextual information ("C-h k" . helpful-key))) #+END_SRC * Languages +** prog-mode +Settings for all programming modes. +#+BEGIN_SRC emacs-lisp +(setq display-line-numbers-width 4) + +(defun my-prog-mode-setup () + (display-line-numbers-mode)) + +(add-hook 'prog-mode-hook 'my-prog-mode-setup) +#+END_SRC ** flycheck -[[https://github.com/flycheck/flycheck][flycheck]] is an on-the-fly syntax checker for many languages +[[https://github.com/flycheck/flycheck][flycheck]] is an on-the-fly syntax checker for many languages. #+BEGIN_SRC emacs-lisp (use-package flycheck @@ -601,6 +611,13 @@ go get -u golang.org/x/tools/cmd/goimports (add-hook 'json-mode-hook (my-json-setup)) #+END_SRC +** API Blueprint +#+BEGIN_SRC emacs-lisp +(use-package apib-mode + :ensure t + :config + (add-to-list 'auto-mode-alist '("\\.apib" . apib-mode))) +#+END_SRC * org-mode ** Setup #+BEGIN_SRC emacs-lisp @@ -630,6 +647,12 @@ go get -u golang.org/x/tools/cmd/goimports ;; by +ATTR_*: width="200" org-image-actual-width '(400) ) + +(defun my-org-mode-setup () + (setq-local display-line-numbers-width 4)) + +(add-hook 'org-mode-hook 'my-org-mode-setup) + ;; these extensions should be considered org-mode files (add-to-list 'auto-mode-alist '("\\.\\(org\\|org\.gpg\\|org_archive\\)$" . org-mode)) -- cgit v1.2.1