From 5a932c6754391139b73ed733693017d36880dc3a Mon Sep 17 00:00:00 2001 From: Brad Clawsie Date: Thu, 1 Apr 2021 21:11:30 -0500 Subject: emacs --- dotemacs | 20 ++++++++++---------- 1 file changed, 10 insertions(+), 10 deletions(-) (limited to 'dotemacs') diff --git a/dotemacs b/dotemacs index fb5ffed..b8a8ada 100644 --- a/dotemacs +++ b/dotemacs @@ -1,3 +1,4 @@ + ;; Added by Package.el. This must come before configurations of ;; installed packages. Don't delete this line. If you don't want it, ;; just comment it out by adding a semicolon to the start of the line. @@ -21,17 +22,10 @@ (global-set-key "\C-l" 'goto-line) (global-set-key "\C-h" 'delete-backward-char) -(global-set-key (kbd "\C-x n") 'next-line) -(global-set-key (kbd "\C-x m") 'previous-line) (global-set-key (kbd "\C-x w") 'kill-region) -(global-set-key (kbd "\C-x a") 'beginning-of-line) (global-set-key (kbd "") 'magit-status) (global-set-key (kbd "") 'eshell) (global-set-key (kbd "") 'rename-buffer) -(global-set-key (kbd "") 'scroll-down) -(global-set-key (kbd "") 'scroll-up) -(global-set-key (kbd "") 'set-mark-command) -(global-set-key (kbd "") 'kill-ring-save) (global-set-key [mouse-2] 'yank) (global-font-lock-mode 1) @@ -63,6 +57,9 @@ (require 'package) (add-to-list 'package-archives '("melpa" . "https://melpa.org/packages/")) +;; ------------------------------------------------------------- +;; language modes + ;; go save hook (setq gofmt-command "goimports") (add-hook 'go-mode-hook (lambda () @@ -71,6 +68,12 @@ ;; .t files perl-mode (add-to-list 'auto-mode-alist '("\\.t\\'" . perl-mode)) +;; racket paredit support +(add-hook 'racket-mode-hook #'enable-paredit-mode) + +;; run auto-fill whenever editing markdown +(add-hook 'markdown-mode-hook 'auto-fill-mode) + ;; ------------------------------------------------------------- (defun insert-time () (interactive) @@ -102,9 +105,6 @@ [?\C-x ?b]) (global-set-key (kbd "C-c b") 'switchbuffers) -;; run auto-fill whenever editing markdown -(add-hook 'markdown-mode-hook 'auto-fill-mode) - ;; no custom! (setq custom-file "~/.custom.el") (load custom-file :noerror) -- cgit v1.2.3