summaryrefslogtreecommitdiff
path: root/.emacs
diff options
context:
space:
mode:
authorSteph Enders <steph@senders.io>2023-03-29 23:38:24 -0400
committerSteph Enders <steph@senders.io>2023-03-29 23:38:24 -0400
commit76e0ffa04a972d0bfb2119b1540267c12efeb5f5 (patch)
tree9e17adcc508745ff6223dad33491682d12c82319 /.emacs
Migrate dotfiles to new setup using stow
I've copied the preliminary list of configurations over from the old repo as well as some probably unnecessary globablly, local files (oversteer) - but I mean it REALLY cannot hurt to have a simple .ini file on a computer. But I may look into having PC branches that are rebased off of master, but it may make merging harder? so IDK. Risky. Anyway. The README.org committed has all you need to know. But for posterity the reason I am using org-mode files for the README is I am seeing how test driving emacs goes. Very easily can swap this over to a markdown file. Just figure - why not.
Diffstat (limited to '.emacs')
-rw-r--r--.emacs51
1 files changed, 51 insertions, 0 deletions
diff --git a/.emacs b/.emacs
new file mode 100644
index 0000000..109ae8b
--- /dev/null
+++ b/.emacs
@@ -0,0 +1,51 @@
+(custom-set-variables
+ ;; custom-set-variables was added by Custom.
+ ;; If you edit it by hand, you could mess it up, so be careful.
+ ;; Your init file should contain only one such instance.
+ ;; If there is more than one, they won't work right.
+ '(custom-safe-themes
+ '("58c996beb973f7e988ee4fd21c367b7a5bbdb0622ddfbbd112672a7b4e3d3b81" default))
+ '(package-selected-packages '(elpher moe-theme org visual-fill-column))
+ '(custom-enabled-themes '(moe-dark))
+ '(initial-buffer-choice t))
+(custom-set-faces
+ ;; custom-set-faces was added by Custom.
+ ;; If you edit it by hand, you could mess it up, so be careful.
+ ;; Your init file should contain only one such instance.
+ ;; If there is more than one, they won't work right.
+ )
+
+;; Setup modes
+;;; remember layout
+;;(desktop-save-mode 1)
+;;; disable menu bar
+;;(menu-bar-mode -1)
+(tool-bar-mode -1)
+(scroll-bar-mode -1)
+;;; disable emacs splash screen
+(setq inhibit-startup-screen t)
+;; Mode hooks
+;;; show line numbers
+;;; (global-display-line-numbers) ; we can set this if we find we want it for all buffers
+(add-hook 'prog-mode-hook (lambda () (display-line-numbers-mode)
+ (visual-line-mode)
+ (visual-fill-column-mode)))
+(add-hook 'text-mode-hook (lambda () (display-line-numbers-mode)
+ (visual-line-mode)
+ (visual-fill-column-mode)))
+
+;; Idiomdrottning and bad-emacs-defaults fixes
+(global-set-key [(control h)] 'delete-backward-char)
+(keyboard-translate ?\C-h ?\C-?)
+(make-directory "~/.emacs.d/backups/" t)
+(make-directory "~/.emacs.d/autosave/" t)
+(setq auto-save-file-name-transforms '((".*" "~/.emacs.d/autosave/" t)))
+(setq backup-directory-alist '(("." . "~/.emacs.d/backups/")))
+(setq sentence-end-double-space nil)
+
+;; Custom mode prefixes
+;;; set gemini to markdown mode for now
+(add-to-list 'auto-mode-alist '("\\.gmi\\'" . markdown-mode))
+
+(when (file-exists-p "~/.emacs.d/pc_local_init.el")
+ (load "~/.emacs.d/pc_local_init.el"))