Commit Diff


commit - 8b5a2d0f1958b593e6fb64089aa63c663b76deb2
commit + 59a3509febcca959517f40a4b6de5dfb1bbea65a
blob - 2e80765e8ce3c1977af2f5f174334de2e8584912
blob + dbd83334003d82892178bbc5b4adfca9d7e8722f
--- config.org
+++ config.org
@@ -44,8 +44,8 @@
   (menu-bar-mode -1)			;; Disable the menubar
   (set-fringe-mode 10)			;; Give some breathing room
   (column-number-mode)			;; 
+  (setq display-line-numbers-type 'relative)	;; Relative line numbers
   (global-display-line-numbers-mode t)	;; Display line numbers
-  (setq display-line-numbers 'relative)	;; Relative line numbers
   (recentf-mode 1)				;; Save recently opened files mode
   ;;(recentf-load-list)			;; Load recently opened files
   (setq history-length 100)			;;
@@ -358,6 +358,7 @@
 * Org
 ** Setup
 #+begin_src emacs-lisp
+  (use-package gnuplot)
   (defun benni/org-mode-setup ()
     (org-indent-mode)
     (variable-pitch-mode 0)
@@ -389,6 +390,8 @@
     (setq org-structure-template-alist '(("c"	. "src c")
                                          ("bash"	. "src bash")
                                          ("sh"	. "src shell")
+                                         ("rs"	. "src rust")
+                                         ("java"	. "src java")
                                          ("el"	. "src emacs-lisp")
                                          ("a"	. "export ascii")
                                          ("C"	. "comment")
@@ -410,6 +413,16 @@
     (org-bullets-bullet-list '("◉" "○" "●" "○" "●" "○" "●")))
 #+end_src
 
+** org-babel
+#+begin_src emacs-lisp
+  (use-package ob-rust)
+  (org-babel-do-load-languages 'org-babel-load-languages '((shell . t)
+                                                           (gnuplot . t)
+                                                           (C . t)
+                                                           (rust . t)
+                                                           (haskell . t)
+                                                           (java . t)))
+#+end_src
 * Development
 ** lsp-mode
 #+begin_src emacs-lisp
@@ -474,7 +487,13 @@
     (add-hook 'rust-mode-hook 'cargo-minor-mode)
     (add-hook 'toml-mode-hook 'cargo-minor-mode))
 #+end_src
-
+** Java
+#+begin_src emacs-lisp
+  (use-package lsp-java
+    :after lsp-mode
+    :config
+    (add-hook 'java-mode-hook 'lsp))
+#+end_src
 * Mail
 #+begin_src emacs-lisp
   (use-package mu4e