emacs.d

My emacs configuration, done in a literate programming fashion using org-mode

git clone git://git.shimmy1996.com/emacs.d.git
commit 0666b6cefe9a51a8ec69b8f538d9f72f6b359829
parent 12963d7b20328928260aca3e56b4c100eef1104e
Author: Shimmy Xu <shimmy.xu@shimmy1996.com>
Date:   Thu, 28 Mar 2019 09:14:22 -0400

Use ess-julia-mode instead of julia-mode.

Diffstat:
MREADME.org | 18++++++++++++------
1 file changed, 12 insertions(+), 6 deletions(-)
diff --git a/README.org b/README.org
@@ -820,10 +820,17 @@ Add highlighting for doxygen blocks.
 #+END_SRC
 
 ** ESS
-Emacs Speaks Statistics (ESS) is an add-on package for emacs text editors such as GNU Emacs and XEmacs. It is designed to support editing of scripts and interaction with various statistical analysis programs such as R, S-Plus, SAS, Stata and OpenBUGS/JAGS.
+Use ESS (Emacs Speaks Statistics) for R and Julia support.
 #+BEGIN_SRC emacs-lisp
   (use-package ess
-    :ensure t)
+    :ensure t
+    :config
+    ;; Add latex symbol completion in julia buffer mode as well.
+    (add-hook 'ess-julia-mode-hook
+          (lambda()
+            (add-hook 'completion-at-point-functions
+                      'ess-julia-latexsub-completion nil 'local)))
+    (setq tab-always-indent 'complete))
 #+END_SRC
 
 ** Org-mode
@@ -1174,13 +1181,12 @@ Code completion utility for rust. Provides =company= integration.
 
 ** Julia-mode
 *** Julia-mode
-Official major mode for =julia=. Automatically enable it for =.jl= files.
+Official major mode for =julia=. This is required as a dependency for =ess-julia-mode=.
 #+BEGIN_SRC emacs-lisp
   (use-package julia-mode
-    :ensure t
-    :init
-    (add-to-list 'auto-mode-alist '("\\.jl\\'" . julia-mode)))
+    :ensure t)
 #+END_SRC
+
 *** Flycheck Support
 Flycheck support via =flycheck-julia=.
 #+BEGIN_SRC emacs-lisp