diff options
-rw-r--r-- | .emacs.d/config.org | 21 | ||||
-rw-r--r-- | .zshrc | 6 |
2 files changed, 26 insertions, 1 deletions
diff --git a/.emacs.d/config.org b/.emacs.d/config.org index 796e32c..5b7f51e 100644 --- a/.emacs.d/config.org +++ b/.emacs.d/config.org @@ -841,6 +841,24 @@ A simple Python-like language with many implementations. (add-hook 'lua-mode-hook 'lua-abbrev-mode-off) (setq save-abbrevs nil) ;; is this still needed? #+end_src +*** OCaml +Installed with OPAM +#+begin_src emacs-lisp + (setenv "PATH" (concat (concat + (concat (expand-file-name "~/.opam/default/bin") ":") + (getenv "PATH")))) + + (setq exec-path (append exec-path (list (expand-file-name "~/.opam/default/bin")))) + + (use-package tuareg + :hook + (tuareg-mode . lsp)) + + (add-to-list 'load-path "/home/venomade/.opam/default/share/emacs/site-lisp") + (require 'ocp-indent) + (require 'dune) + (require 'utop) +#+end_src *** COMMENT Vala An OOP Language for C & GLib interop. #+begin_src emacs-lisp @@ -871,6 +889,9 @@ A powerful auto-completion utility. ;; Disable Autocomplete (setq company-idle-delay 0) + ;; Disable Case Sensitivity + (setq completion-ignore-case t) + ;; Bind M-/ to company-complete (define-key global-map (kbd "M-/") 'company-complete) (define-key global-map (kbd "M-?") 'dabbrev-expand) diff --git a/.zshrc b/.zshrc index cf9fbf0..6af87b4 100644 --- a/.zshrc +++ b/.zshrc @@ -79,4 +79,8 @@ add-zsh-hook precmd set_prompt # plugins source /usr/share/zsh-syntax-highlighting/zsh-syntax-highlighting.zsh -[ -f "/home/venomade/.ghcup/env" ] && . "/home/venomade/.ghcup/env" # ghcup-env \ No newline at end of file +# GHCUP for Haskell +[ -f "/home/venomade/.ghcup/env" ] && . "/home/venomade/.ghcup/env" # ghcup-env + +# OPAM for OCaml +[[ ! -r '/home/venomade/.opam/opam-init/init.zsh' ]] || source '/home/venomade/.opam/opam-init/init.zsh' > /dev/null 2> /dev/null |