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.

103 lines
2.9 KiB

  1. # Troubleshooting
  2. ## Updating bundled packages
  3. Generally it's a good idea to do a package update before running
  4. updating Prelude, since the latest Prelude code might depend on newer
  5. versions of the bundled packages than you would currently have
  6. installed.
  7. If you're doing manual Prelude updates you should always do a package update first.
  8. `M-x package-list-packages RET U x`
  9. That's not necessary if you're using `M-x prelude-update`, since it
  10. will automatically update the installed packages.
  11. ## Problems with flyspell-mode
  12. Prelude makes heavy use of the flyspell-mode package for spell
  13. checking of various things. The proper operation of flyspell depends
  14. on the presence of the `aspell` program and an `en` dictionary on your
  15. system. You can install `aspell` and the dictionary on macOS with
  16. `homebrew` like this:
  17. ```bash
  18. brew install aspell --with-lang=en
  19. ```
  20. On Linux distros - just use your distro's package manager.
  21. ## Ugly colors in the terminal Emacs version
  22. If your Emacs looks considerably uglier in a terminal (compared to the
  23. GUI version) try adding this to your `.bashrc` or `.zshrc`:
  24. ```bash
  25. export TERM=xterm-256color
  26. ```
  27. Source the `.bashrc` file and start Emacs again.
  28. ## MELPA error on initial startup
  29. If you get some http connection error related to the MELPA repo
  30. just do a manual `M-x package-refresh-contents` and restart Emacs
  31. afterwards.
  32. ## Warnings on arrow navigation in editor buffers
  33. This is not a bug - it's a feature! I firmly believe that the one true
  34. way to use Emacs is by using it the way it was intended to be used (as
  35. far as navigation is concerned at least).
  36. If you'd like to be take this a step further and disable the arrow key navigation
  37. completely put this in your personal config:
  38. ```emacs-lisp
  39. (setq guru-warn-only nil)
  40. ```
  41. To disable `guru-mode` completely add the following snippet to your
  42. personal Emacs config:
  43. ```emacs-lisp
  44. (setq prelude-guru nil)
  45. ```
  46. ## Customized C-a behavior
  47. Prelude overrides `C-a` to behave as described
  48. [here](http://emacsredux.com/blog/2013/05/22/smarter-navigation-to-the-beginning-of-a-line/). If
  49. you don't like that simply add this to your personal config:
  50. ```emacs-lisp
  51. (global-set-key [remap move-beginning-of-line]
  52. 'move-beginning-of-line)
  53. ```
  54. ## Poor ido matching performance on large datasets
  55. Prelude's `ido` module swaps the default `ido` flex matching with the
  56. more powerful [ido-flx](https://github.com/lewang/flx).
  57. The sorting algorithm `flx` uses is more complex, but yields better results.
  58. On slower machines, it may be necessary to lower `flx-ido-threshold` to
  59. ensure a smooth experience.
  60. ```emacs-lisp
  61. (setq flx-ido-threshold 1000)
  62. ```
  63. You can always disable the improved sorting algorithm all together like this:
  64. ```emacs-lisp
  65. (flx-ido-mode -1)
  66. ```
  67. ## Windows compatibility
  68. While everything in Prelude should work fine in Windows, I test it only
  69. with GNU/Linux & macOS, so there might be Windows-specific problems from time to
  70. time. This situation will probably improve over time.