aboutsummaryrefslogtreecommitdiffstats
path: root/emacs
diff options
context:
space:
mode:
Diffstat (limited to 'emacs')
-rw-r--r--emacs/loader.org46
1 files changed, 30 insertions, 16 deletions
diff --git a/emacs/loader.org b/emacs/loader.org
index 2808490..5d300ee 100644
--- a/emacs/loader.org
+++ b/emacs/loader.org
@@ -72,6 +72,9 @@ be used to load any file in that directory.
(interactive "f")
"Load a file in current user's configuration directory"
(load-file (expand-file-name file user-init-dir)))
+
+ (setq load-path
+ (cons (expand-file-name "~/.emacs.d/modes") load-path))
#+END_SRC
** Repositories
@@ -160,6 +163,10 @@ buffer instead.
(global-visual-line-mode t)
#+end_src
+#+begin_src emacs-lisp
+ (global-visual-line-mode t)
+#+end_src
+
*** Custom modeline
Editing the modeline. ~%c~ might be a bit slow though, so that could be removed
@@ -514,10 +521,6 @@ Set navigation commands in all the buffers
(interactive)
(other-window -1))
-;; (use-package golden-ratio
-;; :config
-;; (golden-ratio-mode))
-
(defun push-mark-no-activate ()
"Pushes `point' to `mark-ring' and does not activate the region
Equivalent to \\[set-mark-command] when \\[transient-mark-mode] is disabled"
@@ -686,8 +689,6 @@ incrementally selecting more and more of the text.
(use-package yasnippet
:config
(yas-global-mode))
-
- (use-package yasnippet-snippets)
#+END_SRC
** Tramp
@@ -781,7 +782,7 @@ Markdown is the standard for writing documentation. This snippet loads GFM
org-directory (expand-file-name "~/Dropbox/org")
org-image-actual-width nil
org-format-latex-options (plist-put org-format-latex-options :scale 1.5)
- org-latex-pdf-process (list "latexmk -shell-escape -bibtex -f -pdf %f")
+ org-latex-pdf-process (list "latexmk -lualatex -shell-escape -bibtex -f -pdf %f")
org-default-notes-file (concat org-directory "/inbox.org")
org-image-actual-width nil
org-export-allow-bind-keywords t)
@@ -956,6 +957,14 @@ Add org noter
#+RESULTS:
| pdf-view-mode |
+** Writeroom
+
+#+begin_src emacs-lisp
+ (use-package writeroom-mode
+ :config
+ (setq writeroom-width 100))
+#+end_src
+
* Programming
My emacs configuration is mostly focused on programming, therefore there is a
lot of different language support.
@@ -966,15 +975,7 @@ lot of different language support.
(use-package magit
:bind (("C-x g" . magit-status))
:config
- (setq server-switch-hook nil)
- (defadvice forge-create-issue (after adjust-window activate)
- "Adjust the window size using the golden-ratio package when
- creating a new issue"
- (golden-ratio))
- (defadvice magit-status (after adjust-window activate)
- "Adjust the window size using the golden-ratio package when
- getting the status of a repository."
- (golden-ratio)))
+ (setq server-switch-hook nil))
#+END_SRC
#+RESULTS:
@@ -1147,6 +1148,12 @@ F# mode for uni work.
(lambda () (local-set-key (kbd "C-c C-c") #'y/fsharp-reload-file))))
#+END_SRC
+*** Flex
+
+#+begin_src emacs-lisp
+ (add-to-list 'auto-mode-alist '("\\.flex\\'" . c-mode))
+#+end_src
+
*** Haskell
Haskell mode with company mode completion.
@@ -1186,6 +1193,13 @@ Haskell mode with company mode completion.
#+RESULTS:
| (lambda nil (set (make-local-variable (quote projectile-tags-command)) hasktags -Re -f "%s" %s "%s")) | (lambda nil (local-set-key (kbd C-c v) (quote haskell-add-import))) | (lambda nil (local-set-key (kbd C-c y a) (quote y/haskell-align-comment))) | haskell-decl-scan-mode | interactive-haskell-mode |
+*** LLVM IR
+
+#+begin_src emacs-lisp
+ (when (file-exists-p "~/.emacs.d/modes/llvm-mode.el")
+ (require 'llvm-mode))
+#+end_src
+
*** HOL
#+begin_src emacs-lisp