From 03876f9778f772546b131b508969262af6f8576b Mon Sep 17 00:00:00 2001 From: Gerardo Marx Date: Thu, 10 Jun 2021 10:31:14 -0500 Subject: [PATCH] ace-window, ivy and multiple-coursors --- .emacs | 34 +++++++++++++++++++++++++++++++++- 1 file changed, 33 insertions(+), 1 deletion(-) diff --git a/.emacs b/.emacs index 5f50b32..5a44869 100644 --- a/.emacs +++ b/.emacs @@ -58,8 +58,40 @@ (require 'which-key) (which-key-mode) ;;+++++++ -;;auctex: +;;2.4 auctex: (setq TeX-auto-save t) (setq TeX-parse-self t) (setq-default TeX-master nil) ;;--end---- +;; 2.5 auto-complet: +(is-installed 'auto-complete) +(ac-config-default) +;; 2.6 ace-window +(is-installed 'ace-window) +(global-set-key (kbd "M-o") 'ace-window) +;; 2.7 avy +(is-installed 'avy) +(avy-setup-default) +(global-set-key (kbd "M-g f") 'avy-goto-line) +;; 2.8 multiple-cursors +(is-installed 'multiple-cursors) +(require 'multiple-cursors) +(global-set-key (kbd "C-S-c C-S-c") 'mc/edit-lines) +(global-set-key (kbd "C->") 'mc/mark-next-like-this) +(global-set-key (kbd "C-<") 'mc/mark-previous-like-this) +(global-set-key (kbd "C-c C-<") 'mc/mark-all-like-this) + + + +(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-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. + )