commit 1e45d6527696532ae85d337dcc9eb8b7f11eab68
parent 4e1f7f679d6459db2376eb2a9eecd7c46a850ab8
Author: Ryan Jeffrey <ryan@ryanmj.xyz>
Date: Sun, 25 Apr 2021 02:11:52 -0700
R setup, spellcheck on git commit.
Diffstat:
1 file changed, 27 insertions(+), 1 deletion(-)
diff --git a/.config/emacs/config.org b/.config/emacs/config.org
@@ -413,7 +413,8 @@
; (add-hook 'after-init-hook '(lambda ()
; (global-magit-file-mode -1)))
- (add-hook 'diff-mode-hook 'whitespace-mode))
+ (add-hook 'diff-mode-hook 'whitespace-mode)
+ (add-hook 'git-commit-setup-hook 'git-commit-turn-on-flyspell))
#+end_src
** Misc
@@ -531,6 +532,22 @@
:init
(add-hook 'elpy-mode-hook #'py-autopep8-enable-on-save))
#+end_src
+** ess (R)
+#+begin_src emacs-lisp
+(use-package ess-site
+ :load-path "/usr/share/emacs/site-lisp/ess/"
+ :commands R
+
+ :init
+ (add-to-list 'auto-mode-alist '("\\.R\\'" . r-mode))
+ (require 'ess-site)
+ (setq tab-always-indent 'complete)
+ (setq company-idle-delay 0.1)
+ (ess-toggle-underscore nil)
+ (with-eval-after-load 'ess
+ (setq ess-use-company t)))
+
+#+end_src
* Text-editor
** spellcheck
#+BEGIN_SRC emacs-lisp
@@ -574,6 +591,15 @@
(global-set-key (kbd "M-i") 'ido-switch-buffer)
+;; Left-to-right by default for slight performance increase.
+(setq-default bidi-paragraph-direction 'left-to-right)
+(setq bidi-inhibit-bpa t)
+;; For slight performance increase with long lines.
+(global-so-long-mode 1)
+
+;; For asynchronous.
+(use-package async
+ :ensure t)
#+END_SRC
** snippets
#+begin_src emacs-lisp