diff options
-rw-r--r-- | init.el | 23 |
1 files changed, 16 insertions, 7 deletions
diff --git a/init.el b/init.el index 9a1b2c4..4a1bfba 100644 --- a/init.el +++ b/init.el @@ -1,8 +1,12 @@ -;; load path +;;; init.el --- an emacs config +;;; Commentary: +;; config file for eli_oat +;;; Code: +;; load filepath (add-to-list 'load-path "~/.emacs.d/lisp") -;; function to create a file if it doesn't already exist (defun ooo/create-if-not-exist (filename) + "Create a FILENAME if it doesn't already exist." (interactive) (if (not(file-exists-p filename)) (with-temp-file filename @@ -19,8 +23,8 @@ (setq user-full-name "Eli Mellen" user-mail-address "hi@eli.li") -;; I find automated backups to be wicked useful. I allow emacs to make many of them, -;; and to make them often. This said, I don't like them muddying my project directories, +;; I find automated backups to be wicked useful. I allow emacs to make many of them, +;; and to make them often. This said, I don't like them muddying my project directories, ;; so I have them dumped into a common folder. (setq backup-directory-alist `(("." . "~/.saves"))) (setq backup-by-copying t) ;; SLOW but very safe @@ -29,7 +33,7 @@ kept-old-versions 2 version-control t) -;; Likewise, history can be a valuable resource. +;; Likewise, history can be a valuable resource. ;; See, https://www.wisdomandwonder.com/wp-content/uploads/2014/03/C3F.html for more on this. (setq savehist-file "~/.emacs.d/savehist") (savehist-mode 1) @@ -199,7 +203,7 @@ (setq which-key-prefix-prefix "+") (straight-use-package 'company) -(setq company-dabbrev-downcase 0 company-idle-delay 0) +(setq company-dabbrev-downcase 0 company-idle-delay 0) (progn (company-mode +1) (global-company-mode +1)) @@ -308,6 +312,9 @@ ;; CLOJURE (straight-use-package 'clojure-mode) (straight-use-package 'cider) +(add-hook 'clojure-mode-hook #'cider-mode) +;; NOTE: +;; bb --nrepl-server ;; JANET (straight-use-package 'janet-mode) @@ -332,7 +339,7 @@ ;; FORTH (autoload 'forth-mode "gforth.el") -(setq auto-mode-alist (cons '("\\.fs\\'" . forth-mode) +(setq auto-mode-alist (cons '("\\.fs\\'" . forth-mode) auto-mode-alist)) (autoload 'forth-block-mode "gforth.el") @@ -375,3 +382,5 @@ (provide 'init) + +;;; init.el ends here |