summaryrefslogtreecommitdiff
path: root/emacs/emacs.el
diff options
context:
space:
mode:
authoralex <alex@pdp7.net>2022-12-13 21:31:10 +0100
committeralex <alex@pdp7.net>2022-12-13 21:31:10 +0100
commitb8d2981926c8910049ccefcc3ee6dae6166b5ca6 (patch)
tree846b696b51e76d7440a299b0d00560165d945151 /emacs/emacs.el
parent59ffee27153d2d49781e3c433043435c4ac05126 (diff)
Initial emacs config
Diffstat (limited to 'emacs/emacs.el')
-rw-r--r--emacs/emacs.el32
1 files changed, 32 insertions, 0 deletions
diff --git a/emacs/emacs.el b/emacs/emacs.el
new file mode 100644
index 00000000..c93c7141
--- /dev/null
+++ b/emacs/emacs.el
@@ -0,0 +1,32 @@
+;; symlink this file to ~/.emacs
+
+(defvar bootstrap-version)
+(let ((bootstrap-file
+ (expand-file-name "straight/repos/straight.el/bootstrap.el" user-emacs-directory))
+ (bootstrap-version 6))
+ (unless (file-exists-p bootstrap-file)
+ (with-current-buffer
+ (url-retrieve-synchronously
+ "https://raw.githubusercontent.com/radian-software/straight.el/develop/install.el"
+ 'silent 'inhibit-cookies)
+ (goto-char (point-max))
+ (eval-print-last-sexp)))
+ (load bootstrap-file nil 'nomessage))
+
+(straight-use-package 'helm)
+(straight-use-package 'projectile)
+(straight-use-package 'adoc-mode)
+(straight-use-package
+ '(flymake-vale :type git :host github :repo "tpeacock19/flymake-vale"))
+
+(projectile-mode +1)
+(define-key projectile-mode-map (kbd "C-c p") 'projectile-command-map)
+
+(global-set-key (kbd "M-x") #'helm-M-x)
+(global-set-key (kbd "C-x r b") #'helm-filtered-bookmarks)
+(global-set-key (kbd "C-x C-f") #'helm-find-files)
+(helm-mode 1)
+
+(add-hook 'adoc-mode-hook #'flymake-vale-load)
+(add-hook 'find-file-hook 'flymake-vale-maybe-load)
+(add-hook 'adoc-mode-hook 'flymake-mode)