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.

65 lines
2.2 KiB

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