- https://www.gnu.org/software/emacs/refcards/pdf/refcard.pdf)
- https://stackoverflow.com/a/20474998/682912
| Task | Shortcut |
|---|---|
| Block Comment or Uncomment A Region | Alt-; |
| ;; disable temporary files | |
| ;; https://stackoverflow.com/a/2680682/682912 | |
| (setq make-backup-files nil) | |
| ;; Add Melpa Sources for installing Packages. | |
| ;; https://melpa.org/#/getting-started | |
| (require 'package) | |
| (let* ((no-ssl (and (memq system-type '(windows-nt ms-dos)) | |
| (not (gnutls-available-p)))) | |
| (proto (if no-ssl "http" "https"))) | |
| ;; 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 '("gnu" . (concat proto "://elpa.gnu.org/packages/"))))) | |
| (package-initialize) | |
| ;; https://www.emacswiki.org/emacs/CopyAndPaste | |
| (setq x-select-enable-clipboard t) | |
| ;; Case insensitive tab completion | |
| ;; https://emacs.stackexchange.com/questions/32407/tab-completion-in-minibuffer-case-insensitive | |
| (setq read-file-name-completion-ignore-case t) | |
| (setq completion-ignore-case t) | |
| (setq read-buffer-completion-ignore-case t) | |
| ;; Some machines confuse Backspace as Ctrl-H and open help. | |
| ;; https://www.gnu.org/software/emacs/manual/html_node/efaq/Backspace-invokes-help.html | |
| (keyboard-translate ?\C-h ?\C-?) |
| Task | Shortcut |
|---|---|
| Block Comment or Uncomment A Region | Alt-; |