From 004bd152f030dcf617d631a68990aa4383ea7289 Mon Sep 17 00:00:00 2001 From: okkez Date: Wed, 1 Aug 2012 23:32:54 +0900 Subject: [PATCH] Use emacs-helm --- emacs-config/config-helm.el | 23 +++++++++++++++++++++++ emacs-config/recipes/helm.rcp | 6 ++++++ emacs-config/start.el | 2 +- 3 files changed, 30 insertions(+), 1 deletion(-) create mode 100644 emacs-config/config-helm.el create mode 100644 emacs-config/recipes/helm.rcp diff --git a/emacs-config/config-helm.el b/emacs-config/config-helm.el new file mode 100644 index 0000000..fbb4519 --- /dev/null +++ b/emacs-config/config-helm.el @@ -0,0 +1,23 @@ +(eval-when-compile (require 'cl)) +(require 'helm) +(require 'helm-buffers) +(require 'helm-files) + +(defun my-helm-mini () + "My Helm mini source" + (interactive) + (helm-other-buffer '(helm-c-source-buffers-list + helm-c-source-recentf + helm-c-source-files-in-current-dir + helm-c-source-buffer-not-found) + "*my helm mini*")) + +(helm-mode 1) +(custom-set-variables + '(helm-command-map-prefix-key "\C-z")) +;(define-key helm-command-map (kbd "C-x C-f") 'helm-filelist+) +(define-key global-map (kbd "C-;") 'my-helm-mini) +(define-key global-map (kbd "M-x") 'helm-M-x) +;(define-key global-map (kbd "C-x C-f") 'helm-filelist+) +(define-key global-map (kbd "C-x b") 'my-helm-mini) + diff --git a/emacs-config/recipes/helm.rcp b/emacs-config/recipes/helm.rcp new file mode 100644 index 0000000..980dfe2 --- /dev/null +++ b/emacs-config/recipes/helm.rcp @@ -0,0 +1,6 @@ +(:name helm + :description "Helm is incremental completion and selection narrowing framework for Emacs." + :type git + :url "https://github.com/emacs-helm/helm.git" + :load-path (".") + :features helm-config) diff --git a/emacs-config/start.el b/emacs-config/start.el index 74d5e52..819feec 100644 --- a/emacs-config/start.el +++ b/emacs-config/start.el @@ -11,7 +11,6 @@ Assume that the filename should be config-NAME.el." (defvar my-emacs-pre-config '("path" "key" "el-get")) (defvar my-emacs-misc-config '("auto-complete" - "anything" ;"auto-insert-tkld" ;"auto-save" "base" @@ -28,6 +27,7 @@ Assume that the filename should be config-NAME.el." "key-chord" "hiki" "haml-mode" + "helm" "html-mode" ;"ibuffer" ;"iswitchb"