2016-05-16 02:00:44 +00:00
|
|
|
|
;;; config.el --- Ivy Layer Configuration File for Spacemacs
|
2016-01-13 05:07:04 +00:00
|
|
|
|
;;
|
|
|
|
|
;; Copyright (c) 2012-2016 Sylvain Benner & Contributors
|
|
|
|
|
;;
|
|
|
|
|
;; Author: Sylvain Benner <sylvain.benner@gmail.com>
|
|
|
|
|
;; URL: https://github.com/syl20bnr/spacemacs
|
|
|
|
|
;;
|
|
|
|
|
;; This file is not part of GNU Emacs.
|
|
|
|
|
;;
|
|
|
|
|
;;; License: GPLv3
|
|
|
|
|
|
2016-05-16 02:24:27 +00:00
|
|
|
|
;; smex is handled by the `ivy' layer and we don't want
|
2016-01-13 05:07:04 +00:00
|
|
|
|
;; to use the ownership mechanism of layers because it is dependent
|
|
|
|
|
;; on the order of layer declaration
|
|
|
|
|
(configuration-layer/remove-layer 'smex)
|
2016-05-16 02:00:44 +00:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
;; Variables
|
|
|
|
|
|
|
|
|
|
(defvar spacemacs--counsel-commands
|
|
|
|
|
'(("ag" . "ag --nocolor --nogroup %s %S .")
|
|
|
|
|
("pt" . "pt -e --nocolor --nogroup %s %S .")
|
|
|
|
|
("ack" . "ack --nocolor --nogroup %s %S .")
|
|
|
|
|
("grep" . "grep -nrP %s %S ."))
|
|
|
|
|
"Alist of search commands and their corresponding commands
|
|
|
|
|
with options to run in the shell.")
|
|
|
|
|
|
|
|
|
|
(defvar spacemacs--counsel-search-max-path-length 30
|
|
|
|
|
"Truncate the current path in counsel search if it is longer
|
|
|
|
|
than this amount.")
|
|
|
|
|
|
|
|
|
|
(defvar spacemacs--counsel-initial-number-cand 100)
|