guide-key and ido-vertical mode.

This commit is contained in:
Ivan Malison 2014-11-21 02:32:19 -08:00
parent a00196a68c
commit 5759aa7ec6
2 changed files with 36 additions and 7 deletions

View File

@ -15,6 +15,7 @@
isearch-printing-char isearch-printing-char
keyboard-quit keyboard-quit
kill-region kill-region
org-self-insert-command
python-indent-electric-colon python-indent-electric-colon
sgml-slash sgml-slash
skeleton-pair-insert-maybe skeleton-pair-insert-maybe

42
init.el
View File

@ -67,6 +67,9 @@
;; Disables ;; Disables
;; ============================================================================= ;; =============================================================================
(setq visible-bell nil)
(setq sentence-end-double-space nil)
;; Disable the creation of backup files. ;; Disable the creation of backup files.
(setq backup-inhibited t) (setq backup-inhibited t)
(setq make-backup-files nil) (setq make-backup-files nil)
@ -96,8 +99,7 @@
;; ============================================================================= ;; =============================================================================
(defvar packages-essential (defvar packages-essential
'(popup auto-complete ido-ubiquitous mo-git-blame multiple-cursors '(popup auto-complete mo-git-blame multiple-cursors yasnippet cl-lib flx-ido))
yasnippet cl-lib flx-ido))
(defvar packages-other (defvar packages-other
'(thingatpt+ latex-preview-pane paredit inf-ruby rust-mode paradox '(thingatpt+ latex-preview-pane paredit inf-ruby rust-mode paradox
@ -243,6 +245,16 @@ buffer is not visiting a file."
(require 'tramp) (require 'tramp)
(setq tramp-default-method "ssh") (setq tramp-default-method "ssh")
(use-package guide-key
:ensure t
:config
(progn
(setq guide-key/guide-key-sequence '("C-c" "C-c p" "C-x C-k" "C-x r"))
(guide-key-mode 1)
(setq guide-key/idle-delay 0.25)
(setq guide-key/recursive-key-sequence-flag t)
(setq guide-key/popup-window-position 'bottom)))
(use-package ace-jump-mode (use-package ace-jump-mode
:ensure t :ensure t
:commands ace-jump-mode :commands ace-jump-mode
@ -287,8 +299,8 @@ buffer is not visiting a file."
:init :init
(progn (progn
(if (emacs24_4-p) (if (emacs24_4-p)
(use-package magit-filenotify :ensure t) (use-package magit-filenotify :ensure t))
(add-hook 'magit-status-mode-hook 'magit-filenotify-mode))) (add-hook 'magit-status-mode-hook 'magit-filenotify-mode))
:config :config
(diminish 'magit-auto-revert-mode)) (diminish 'magit-auto-revert-mode))
@ -338,6 +350,11 @@ buffer is not visiting a file."
(use-package org (use-package org
:ensure t :ensure t
:init :init
(defun guide-key/my-hook-function-for-org-mode ()
(guide-key/add-local-guide-key-sequence "C-c")
(guide-key/add-local-guide-key-sequence "C-c C-x")
(guide-key/add-local-highlight-command-regexp "org-"))
(add-hook 'org-mode-hook 'guide-key/my-hook-function-for-org-mode)
(add-hook 'org-mode-hook (lambda () (linum-mode 0)))) (add-hook 'org-mode-hook (lambda () (linum-mode 0))))
(use-package epg (use-package epg
@ -355,7 +372,7 @@ buffer is not visiting a file."
;; ".\\{81\\}" 'hi-blue))) ;; ".\\{81\\}" 'hi-blue)))
;; ============================================================================= ;; =============================================================================
;; Navigation: helm/projectile/ido ;; File Navigation: helm/projectile/ido
;; ============================================================================= ;; =============================================================================
(use-package helm (use-package helm
@ -379,6 +396,12 @@ buffer is not visiting a file."
("C-x f" . projectile-find-file-in-known-projects)) ("C-x f" . projectile-find-file-in-known-projects))
:init :init
(progn (progn
(use-package persp-projectile
:ensure t
:defer t)
(use-package ido-vertical-mode
:ensure t
:config (ido-vertical-mode 1))
(use-package flx (use-package flx
:ensure t :ensure t
:config :config
@ -513,8 +536,13 @@ buffer is not visiting a file."
:config :config
(progn (progn
(use-package ensime (use-package ensime
:config (add-hook 'scala-mode-hook 'ensime-scala-mode-hook) :config
:ensure t) (progn
(add-hook 'scala-mode-hook 'ensime-scala-mode-hook)
(defun guide-key/scala-mode-hook ()
(guide-key/add-local-guide-key-sequence "C-c C-v")
(add-hook 'scala-mode-hook 'guide-key/scala-mode-hook))
:ensure t))
(setq scala-indent:align-parameters t)) (setq scala-indent:align-parameters t))
:mode (("\\.scala\\'" . scala-mode) :mode (("\\.scala\\'" . scala-mode)
("\\.sc\\'" . scala-mode)) ("\\.sc\\'" . scala-mode))