From 7864669e1d6c0fdc5f00a4d9a3665812fd57b74d Mon Sep 17 00:00:00 2001 From: Paul Walker Date: Wed, 16 Dec 2020 16:28:41 +0000 Subject: [PATCH] emacs: add old bare-bones emacs --- emacs | 48 ++++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 48 insertions(+) create mode 100644 emacs diff --git a/emacs b/emacs new file mode 100644 index 0000000..8096dce --- /dev/null +++ b/emacs @@ -0,0 +1,48 @@ +;; Global keybindings +;; (global-set-key [f5] 'slime) + +;; Global settings + +;; 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. +;; You may delete these explanatory comments. +(require 'package) +(let* ((no-ssl (and (memq system-type '(windows-nt ms-dos)) + (not (gnutls-available-p)))) + (proto (if no-ssl "http" "https"))) + (when no-ssl + (warn "\ + Your version of Emacs does not support SSL connections, + which is unsafe because it allows man-in-the-middle attacks. + There are two things you can do about this warning: + 1. Install an Emacs version that does support SSL and be safe. + 2. Remove this warning from your init file so you won't see it again.")) + ;; Comment/uncomment these two lines to enable/disable MELPA and MELPA Stable as desired + (add-to-list 'package-archives (cons "melpa" (concat proto "://melpa.org/packages/")) t) + ;;(add-to-list 'package-archives (cons "melpa-stable" (concat proto "://stable.melpa.org/packages/")) t) + (when (< emacs-major-version 24) + ;; For important compatibility libraries like cl-lib + (add-to-list 'package-archives (cons "gnu" (concat proto "://elpa.gnu.org/packages/"))))) + +(package-initialize) + +(windmove-default-keybindings) +;; (setq windmove-wrap-around t) + +(global-set-key "\C-m" 'newline-and-indent) + +(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. + '(package-selected-packages + (quote + (alchemist markdown-preview-mode markdown-mode magit helm-gtags helm-ag fzf)))) +(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. + )