From e6e801fba96f0c355418542e1fbdc0de41135d96 Mon Sep 17 00:00:00 2001 From: Ivan Malison Date: Sat, 25 Oct 2014 17:49:54 -0700 Subject: [PATCH] Renable linum mode. get rid of dialog boxes in visual mode. add yasnippet. add emacs notes org mode file. --- emacs_notes.org | 20 ++++++++++++++++++++ init.el | 8 ++++++-- 2 files changed, 26 insertions(+), 2 deletions(-) create mode 100644 emacs_notes.org diff --git a/emacs_notes.org b/emacs_notes.org new file mode 100644 index 00000000..74ae20fe --- /dev/null +++ b/emacs_notes.org @@ -0,0 +1,20 @@ +Emacs Notes -*- mode: org -*- + +** C-x z to repeat last command +** F3 to define macro F4 to use macro +*** Great in combinatino with C-u +** C-x r (space to set register) (j to jump to register) +*** This requires you to enter a number after words +*** This is SUPER SUPER useful + +** C-u to repeat a command +*** Its multiplicative + +** set-goal-column C-x C-n +** C-x C-n +** M-- To do the opposite of a commands +*** Obviously this only works for commands for which the inverse has been defined + +** M-e and M-a for paragraph movement. +** C-M-f and C-M-b for movement by S-expression +** M-m for moving to current indentation diff --git a/init.el b/init.el index 29a61e6a..c02c350b 100644 --- a/init.el +++ b/init.el @@ -50,7 +50,7 @@ auto-complete project-root popup web-beautify js2-mode js3-mode sphinx-doc ansi-color pytest exec-path-from-shell base16-theme slime - string-inflection) + string-inflection yasnippet) "Packages that must be installed at launch.") (defun ensure-package-installed (packages) @@ -93,6 +93,10 @@ Return a list of installed packages or nil for every package not installed." (if (fboundp 'tool-bar-mode) (tool-bar-mode -1)) (if (fboundp 'menu-bar-mode) (menu-bar-mode -1)) +;; Evvvillll +(setq use-dialog-box nil) + + ;; Set the default font for emacs. ;;(set-face-attribute 'default t :font "Deja Vu") ;;(set-frame-font "Deja Vu Sans Mono" t t) @@ -113,7 +117,7 @@ Return a list of installed packages or nil for every package not installed." ;; Display line and column numbers in mode line. (line-number-mode t) (column-number-mode t) -;;(global-linum-mode t) +(global-linum-mode t) ;; Don't disable downcase and upcase region. (put 'upcase-region 'disabled nil)