From fa27f363697cac37c763e986d58b1131f3c69554 Mon Sep 17 00:00:00 2001 From: rawley fowler Date: Wed, 17 Aug 2022 11:40:58 -0600 Subject: [PATCH] add .emacs --- emacs/.emacs | 55 ++++++++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 55 insertions(+) create mode 100644 emacs/.emacs diff --git a/emacs/.emacs b/emacs/.emacs new file mode 100644 index 0000000..3f303ce --- /dev/null +++ b/emacs/.emacs @@ -0,0 +1,55 @@ +(tool-bar-mode 0) +(scroll-bar-mode -1) +(set-language-environment "UTF-8") +(prefer-coding-system 'utf-8) +(set-frame-font "Ubuntu Mono-16" nil t) +(transient-mark-mode) +(show-paren-mode 1) +(setq inhibit-startup-screen t) +(setq backup-directory-alist '(("." . "~/.emacs.d/backups"))) +(defalias 'yes-or-no-p 'y-or-n-p) + +(require 'package) +(add-to-list 'package-archives + '("gnu" . "https://elpa.gnu.org/packages/")) +(add-to-list 'package-archives + '("melpa" . "https://melpa.org/packages/")) +(package-initialize) + +(unless (package-installed-p 'use-package) + (package-refresh-contents) + (package-install 'use-package)) + +(eval-and-compile + (setq use-package-always-ensure t + use-package-expand-minimally t)) + +(require 'ido) +(ido-mode 1) + +;; Packages +(require 'use-package) +(use-package gruber-darker-theme) +(use-package smex + :config + (smex-initialize) + (global-set-key (kbd "M-x") 'smex)) +(use-package tuareg) +(use-package haml-mode) + +(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-enabled-themes '(gruber-darker)) + '(custom-safe-themes + '("3d2e532b010eeb2f5e09c79f0b3a277bfc268ca91a59cdda7ffd056b868a03bc" default)) + '(package-selected-packages + '(haml-mode tuareg caml-mode ocaml-mode smex gruber-darker-theme use-package))) +(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. + )