Add OCaml
Feeling Functional
This commit is contained in:
1 parent
5d59b1da2c
commit
e9d31e5cef
2 files changed
+25
No files matched your search
@@ -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)
|
||||
|
||||
@@ -79,4 +79,8 @@ add-zsh-hook precmd set_prompt
|
||||
# plugins
|
||||
source /usr/share/zsh-syntax-highlighting/zsh-syntax-highlighting.zsh
|
||||
|
||||
# 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
|
||||
Reference in new issue
Block a user