From 2665d577176452551197e7d33cdf09a7e7c3972b Mon Sep 17 00:00:00 2001 From: benj Date: Thu, 22 Mar 2018 16:14:57 -0700 Subject: added ace-window and modified multiple cursor left arrow behavior --- .gitignore | 3 ++- init.el | 4 +++- settings/setup-ace-window-mode.el | 34 ++++++++++++++++++++++++++++++++++ settings/setup-multiple-cursors.el | 2 +- 4 files changed, 40 insertions(+), 3 deletions(-) create mode 100644 settings/setup-ace-window-mode.el diff --git a/.gitignore b/.gitignore index 86ce92f..8bb518a 100644 --- a/.gitignore +++ b/.gitignore @@ -9,4 +9,5 @@ ido* .mc-* derby* auto-save-list* -metastore_db* \ No newline at end of file +metastore_db* +projectile-bookmarks.eld \ No newline at end of file diff --git a/init.el b/init.el index 70917e2..6d766ff 100644 --- a/init.el +++ b/init.el @@ -51,7 +51,8 @@ (defun init-install-packages() (packages-install - '(cider + '(ace-window + cider clojure-mode clojure-mode-extra-font-locking clojure-snippets @@ -97,6 +98,7 @@ (add-to-list 'exec-path "/usr/local/bin") +(require 'setup-ace-window-mode) (require 'setup-auto-insert-mode) (require 'setup-c++-mode) (require 'setup-clojure-mode) diff --git a/settings/setup-ace-window-mode.el b/settings/setup-ace-window-mode.el new file mode 100644 index 0000000..f0ca5b2 --- /dev/null +++ b/settings/setup-ace-window-mode.el @@ -0,0 +1,34 @@ +;;; setup-ace-window-mode.el --- ace window mode config -*- lexical-binding: t; -*- + +;; Copyright (C) 2018 Benj Bellon + +;; Author: Benj Bellon +;; Keywords: lisp + +;; This program is free software; you can redistribute it and/or modify +;; it under the terms of the GNU General Public License as published by +;; the Free Software Foundation, either version 3 of the License, or +;; (at your option) any later version. + +;; This program is distributed in the hope that it will be useful, +;; but WITHOUT ANY WARRANTY; without even the implied warranty of +;; MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +;; GNU General Public License for more details. + +;; You should have received a copy of the GNU General Public License +;; along with this program. If not, see . + +;;; Commentary: + +;; basic config for ace window mode + +;;; Code: +(require 'ace-window) + +(global-set-key (kbd "C-c o") 'ace-window) + +(setq aw-keys '(?a ?s ?d ?f ?g ?h ?j ?k ?l)) + + +(provide 'setup-ace-window-mode) +;;; setup-ace-window-mode.el ends here diff --git a/settings/setup-multiple-cursors.el b/settings/setup-multiple-cursors.el index fdfef8d..a1df221 100644 --- a/settings/setup-multiple-cursors.el +++ b/settings/setup-multiple-cursors.el @@ -7,7 +7,7 @@ (global-set-key (kbd "C-c " ) 'mc/mark-all-like-this))) (global-set-key (kbd "C-c ") 'mc/mark-next-like-this) -(global-set-key (kbd "C-c ") 'mc/mark-previous-like-this) +(global-set-key (kbd "C-c ") 'mc/mark-all-in-region-regexp) (global-set-key (kbd "M-s m") 'mc/mark-all-in-eval) (provide 'setup-multiple-cursors) -- cgit v1.2.3