Emacs config utilizing prelude as a base
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

67 lines
2.3 KiB

  1. ;;; prelude-helm.el --- Helm setup
  2. ;;
  3. ;; Copyright © 2011-2017 Bozhidar Batsov
  4. ;;
  5. ;; Author: Bozhidar Batsov <bozhidar@batsov.com>
  6. ;; URL: https://github.com/bbatsov/prelude
  7. ;; Version: 1.0.0
  8. ;; Keywords: convenience
  9. ;; This file is not part of GNU Emacs.
  10. ;;; Commentary:
  11. ;; Some configuration for Helm following this guide:
  12. ;; http://tuhdo.github.io/helm-intro.html
  13. ;;; License:
  14. ;; This program is free software; you can redistribute it and/or
  15. ;; modify it under the terms of the GNU General Public License
  16. ;; as published by the Free Software Foundation; either version 3
  17. ;; of the License, or (at your option) any later version.
  18. ;;
  19. ;; This program is distributed in the hope that it will be useful,
  20. ;; but WITHOUT ANY WARRANTY; without even the implied warranty of
  21. ;; MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
  22. ;; GNU General Public License for more details.
  23. ;;
  24. ;; You should have received a copy of the GNU General Public License
  25. ;; along with GNU Emacs; see the file COPYING. If not, write to the
  26. ;; Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor,
  27. ;; Boston, MA 02110-1301, USA.
  28. ;;; Code:
  29. (prelude-require-packages '(helm helm-projectile))
  30. (require 'helm-config)
  31. (require 'helm-projectile)
  32. (when (executable-find "curl")
  33. (setq helm-google-suggest-use-curl-p t))
  34. ;; See https://github.com/bbatsov/prelude/pull/670 for a detailed
  35. ;; discussion of these options.
  36. (setq helm-split-window-in-side-p t
  37. helm-buffers-fuzzy-matching t
  38. helm-move-to-line-cycle-in-source t
  39. helm-ff-search-library-in-sexp t
  40. helm-ff-file-name-history-use-recentf t)
  41. ;; The default "C-x c" is quite close to "C-x C-c", which quits Emacs.
  42. ;; Changed to "C-c h". Note: We must set "C-c h" globally, because we
  43. ;; cannot change `helm-command-prefix-key' once `helm-config' is loaded.
  44. (global-set-key (kbd "C-c h") 'helm-command-prefix)
  45. (global-unset-key (kbd "C-x c"))
  46. (define-key helm-command-map (kbd "o") 'helm-occur)
  47. (define-key helm-command-map (kbd "g") 'helm-do-grep)
  48. (define-key helm-command-map (kbd "C-c w") 'helm-wikipedia-suggest)
  49. (define-key helm-command-map (kbd "SPC") 'helm-all-mark-rings)
  50. (push "Press <C-c p h> to navigate a project in Helm." prelude-tips)
  51. (provide 'prelude-helm)
  52. ;;; prelude-helm.el ends here