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.

54 lines
1.6 KiB

  1. ;;; prelude-selectrum.el --- Selectrum setup
  2. ;;
  3. ;; Copyright © 2011-2020 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. ;; Selectrum-related config. Selectrum is a smart framework for minibuffer
  10. ;; completion/filtering/selection (think of ivy/ido).
  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 '(selectrum selectrum-prescient))
  28. ;;; Selectrum
  29. ;;
  30. ;; selectrum is a powerful alternative to the popular ido-mode and ivy-mode.
  31. (require 'selectrum)
  32. (require 'selectrum-prescient)
  33. (require 'diminish)
  34. (selectrum-mode 1)
  35. (diminish 'selectrum-mode)
  36. ;; to make sorting and filtering more intelligent
  37. (selectrum-prescient-mode +1)
  38. ;; to save your command history on disk, so the sorting gets more
  39. ;; intelligent over time
  40. (prescient-persist-mode +1)
  41. (provide 'prelude-selectrum)
  42. ;;; prelude-selectrum.el ends here