### Installing Emacs Prelude via Wget (Shell) Source: https://github.com/bbatsov/prelude/blob/master/docs/installation.md This command utilizes `wget` to fetch the Emacs Prelude installer script from GitHub and pipe it to `sh` for execution. It's an alternative automated installation method, also requiring `git`. ```shell wget --no-check-certificate https://github.com/bbatsov/prelude/raw/master/utils/installer.sh -O - | sh ``` -------------------------------- ### Installing Emacs Prelude with Default Settings - Shell Source: https://github.com/bbatsov/prelude/blob/master/README.md This command initiates the installation of Emacs Prelude using a `curl` command to fetch and execute an installer script. It's the quickest way to get Prelude up and running on Unix-like systems, assuming `git` and `curl` are already installed. ```shell curl -L https://git.io/epre | sh ``` -------------------------------- ### Installing Emacs Prelude via Curl (Shell) Source: https://github.com/bbatsov/prelude/blob/master/docs/installation.md This command uses `curl` to download and execute the Emacs Prelude installer script directly from the GitHub repository. It's an automated method for quick installation, requiring `git` to be present on the system. ```shell curl -L https://github.com/bbatsov/prelude/raw/master/utils/installer.sh | sh ``` -------------------------------- ### Manually Installing Emacs Prelude (Shell) Source: https://github.com/bbatsov/prelude/blob/master/docs/installation.md This sequence of shell commands manually installs Emacs Prelude. It involves cloning the repository, creating a symbolic link from the cloned directory to `~/.emacs.d`, and then changing into the new Emacs configuration directory. Ensure no existing `.emacs` file or `.emacs.d` folder is present before execution. ```shell git clone https://github.com/bbatsov/prelude.git path/to/local/repo ln -s path/to/local/repo ~/.emacs.d cd ~/.emacs.d ``` -------------------------------- ### Loading Prelude System-wide (Emacs Lisp) Source: https://github.com/bbatsov/prelude/blob/master/docs/installation.md This Emacs Lisp snippet is used for system-wide installation of Emacs Prelude. It should be appended to the `site-start.el` file, typically located in the `site-lisp` directory, to load Prelude's initialization file for all users. This is suitable for multi-user environments or daemon processes. ```emacs-lisp (load "/opt/prelude/init.el") ``` -------------------------------- ### Updating Emacs Prelude Code (Shell) Source: https://github.com/bbatsov/prelude/blob/master/docs/installation.md This shell command sequence updates the Emacs Prelude installation. It first navigates to the Prelude installation directory (typically `~/.emacs.d`) and then executes `git pull` to fetch and integrate the latest changes from the Git repository, ensuring the Prelude codebase is up-to-date. ```shell cd path/to/prelude/installation git pull ``` -------------------------------- ### Installing gopls Language Server for Go Source: https://github.com/bbatsov/prelude/blob/master/docs/modules/go.md This command installs the `gopls` language server, which is essential for `lsp-mode` to provide features like autocompletion, documentation, and code navigation for Go projects in Emacs. It should be executed from a directory outside of any Go module or `$GOPATH` to ensure proper installation. After installation, verify that `gopls` is accessible in your system's `$PATH`. ```Go go install golang.org/x/tools/gopls@latest ``` -------------------------------- ### Installing Core Libraries and UTOP with OPAM Source: https://github.com/bbatsov/prelude/blob/master/docs/modules/ocaml.md This command uses the OPAM package manager to install the Jane Street Core libraries and UTOP, the universal OCaml top-level. These are essential prerequisites for using Prelude's OCaml setup, replacing the standard OCaml toplevel and libraries. ```Shell opam install core utop ``` -------------------------------- ### Serving MkDocs Documentation Locally (Shell) Source: https://github.com/bbatsov/prelude/blob/master/docs/contributing.md This snippet demonstrates how to navigate to the Prelude repository and serve the documentation locally using the `mkdocs serve` command. This allows users to preview changes made to the manual before they are merged. It requires `MkDocs` to be installed. ```sh cd path/to/prelude/repo mkdocs serve ``` -------------------------------- ### Enabling Emacs Prelude Modules (Lisp) Source: https://github.com/bbatsov/prelude/blob/master/docs/installation.md This Lisp snippet from `prelude-modules.el` demonstrates how to enable various Emacs Prelude modules by uncommenting the `(require 'module-name)` expressions. Modules are categorized for productivity, Vim emulation, Org-mode, and programming language support. After modifications, Emacs must be restarted or the expressions evaluated for changes to take effect. ```lisp ;;; Uncomment the modules you'd like to use and restart Prelude afterwards ;;; General productivity tools ;; (require 'prelude-ido) ;; Supercharges Emacs completion for C-x C-f and more ;; (require 'prelude-ivy) ;; A mighty modern alternative to ido (require 'prelude-vertico) ;; A powerful, yet simple, alternative to ivy ;; (require 'prelude-helm) ;; Interface for narrowing and search ;; (require 'prelude-helm-everywhere) ;; Enable Helm everywhere (require 'prelude-company) ;; (require 'prelude-key-chord) ;; Binds useful features to key combinations ;;; Vim emulation ;; ;; Enable this module if you're fond of vim's keybindings. ;; (require 'prelude-evil) ;;; Org-mode (a legendary productivity tool that deserves its own category) ;; ;; Org-mode helps you keep TODO lists, notes and more. (require 'prelude-org) ;;; Programming languages support ;; ;; Modules for a few very common programming languages ;; are enabled by default. (require 'prelude-c) ;; (require 'prelude-clojure) ;; (require 'prelude-coffee) ;; (require 'prelude-common-lisp) (require 'prelude-css) ;; (require 'prelude-dart) (require 'prelude-emacs-lisp) ;; (require 'prelude-erlang) ;; (require 'prelude-elixir) ;; (require 'prelude-go) ;; (require 'prelude-haskell) (require 'prelude-js) ;; (require 'prelude-latex) (require 'prelude-lisp) ;; Common setup for Lisp-like languages (require 'prelude-lsp) ;; Base setup for the Language Server Protocol ;; (require 'prelude-lua) ;; (require 'prelude-ocaml) (require 'prelude-perl) ;; (require 'prelude-python) ;; (require 'prelude-racket) ;; (require 'prelude-ruby) ;; (require 'prelude-rust) ;; (require 'prelude-scala) ;; (require 'prelude-scheme) (require 'prelude-shell) ;; (require 'prelude-scss) ;; (require 'prelude-ts) (require 'prelude-web) ;; Emacs mode for web templates (require 'prelude-xml) (require 'prelude-yaml) ;;; Misc (require 'prelude-erc) ;; A popular Emacs IRC client (useful if you're still into Freenode) ``` -------------------------------- ### Installing Emacs Prelude from a Custom Source Repository - Shell Source: https://github.com/bbatsov/prelude/blob/master/README.md This command enables installation of Emacs Prelude from a different Git repository by setting the `PRELUDE_URL` environment variable. This is particularly useful for developers or users who maintain a forked version of Prelude and wish to install their custom configuration. ```shell export PRELUDE_URL="https://github.com/yourname/prelude.git" && curl -L https://github.com/bbatsov/prelude/raw/master/utils/installer.sh | sh ``` -------------------------------- ### Installing Emacs Prelude to a Custom Directory - Shell Source: https://github.com/bbatsov/prelude/blob/master/README.md This command allows users to specify a custom installation directory for Emacs Prelude by setting the `PRELUDE_INSTALL_DIR` environment variable before running the installer script. This is useful for managing multiple Emacs configurations or placing Prelude outside the default `$HOME/.emacs.d` location. ```shell export PRELUDE_INSTALL_DIR="$HOME/.emacs.d" && curl -L https://github.com/bbatsov/prelude/raw/master/utils/installer.sh | sh ``` -------------------------------- ### Trying Emacs Prelude Without Full Installation - Shell Source: https://github.com/bbatsov/prelude/blob/master/README.md For Emacs 29+ users, this command allows trying Prelude by specifying its cloned repository as the initialization directory. This method avoids modifying the default Emacs configuration, providing a safe way to test Prelude or other Emacs distributions. ```shell emacs --init-dir ~/path/to/prelude ``` -------------------------------- ### Starting Emacs in Daemon Mode (Shell) Source: https://github.com/bbatsov/prelude/blob/master/docs/usage.md This command starts Emacs in daemon mode, allowing subsequent client connections to a persistent Emacs server. This is useful for faster startup times when opening new Emacs frames or terminals. ```shell emacs --daemon ``` -------------------------------- ### Requiring a Single Package in Prelude Emacs Lisp Source: https://github.com/bbatsov/prelude/blob/master/docs/configuration.md This Emacs Lisp snippet utilizes `prelude-require-package` to ensure a single specified package (e.g., `some-package`) is installed and loaded. This function simplifies the process of managing individual package dependencies within your Prelude setup. ```Emacs Lisp (prelude-require-package 'some-package) ``` -------------------------------- ### Generating PDF Cheatsheet with LaTeX in Shell Source: https://github.com/bbatsov/prelude/blob/master/docs/usage.md This shell script generates a PDF version of the Emacs Prelude cheatsheet. It requires LaTeX to be installed. The script first navigates to the `modules/doc` directory and then compiles the `prelude-cheatsheet.tex` file using `pdflatex`. ```shell cd modules/doc pdflatex prelude-cheatsheet.tex ``` -------------------------------- ### Generating PNG Cheatsheet with Poppler in Shell Source: https://github.com/bbatsov/prelude/blob/master/docs/usage.md This shell script generates a PNG version of the Emacs Prelude cheatsheet from its PDF counterpart. It requires Poppler to be installed. The script navigates to the `modules/doc` directory and uses `pdftocairo` to convert the `prelude-cheatsheet.pdf` into a single PNG file named `cheatsheet.png`. ```shell cd modules/doc pdftocairo -png -singlefile prelude-cheatsheet.pdf cheatsheet ``` -------------------------------- ### Installing Aspell for Flyspell-mode on macOS (Shell) Source: https://github.com/bbatsov/prelude/blob/master/docs/troubleshooting.md This command installs the `aspell` program and its English dictionary using Homebrew on macOS. `aspell` is a prerequisite for `flyspell-mode` to function correctly in Emacs Prelude, enabling spell checking. ```shell brew install aspell --with-lang=en ``` -------------------------------- ### Requiring Multiple Packages in Prelude Emacs Lisp Source: https://github.com/bbatsov/prelude/blob/master/docs/configuration.md This snippet uses the `prelude-require-packages` function to ensure that a list of specified Emacs packages (e.g., `some-package`, `some-other-package`) are installed and available. This is useful for automating package installation within your personal Prelude configuration. ```Emacs Lisp (prelude-require-packages '(some-package some-other-package)) ``` -------------------------------- ### Configuring Ruby Development Environment with Prelude (Emacs Lisp) Source: https://github.com/bbatsov/prelude/blob/master/docs/modules/index.md This Emacs Lisp snippet defines the `prelude-ruby` module, which configures Emacs for Ruby and Rails development. It ensures necessary packages like `inf-ruby` and `yari` are installed, prevents editing of Rubinius bytecode by ignoring `.rbc` files, and maps `yari` to `C-h R`. Additionally, it customizes `ruby-mode` to disable encoding comments, enable `inf-ruby-minor-mode` for interactive Ruby sessions, and activate `subword-mode` for CamelCase-aware editing. ```Emacs Lisp ;;; prelude-ruby.el --- Emacs Prelude: A nice setup for Ruby (and Rails) devs. ;; ;;; Code: (require 'prelude-programming) (prelude-require-packages '(inf-ruby yari)) ;; We never want to edit Rubinius bytecode (add-to-list 'completion-ignored-extensions ".rbc") ;; Map yari to C-h R (define-key 'help-command (kbd "R") 'yari) (with-eval-after-load 'ruby-mode (defun prelude-ruby-mode-defaults () ;; Don't auto-insert encoding comments ;; Those are almost never needed in Ruby 2+ (setq ruby-insert-encoding-magic-comment nil) (inf-ruby-minor-mode +1) ;; CamelCase aware editing operations (subword-mode +1)) (setq prelude-ruby-mode-hook 'prelude-ruby-mode-defaults) (add-hook 'ruby-mode-hook (lambda () (run-hooks 'prelude-ruby-mode-hook)))) (provide 'prelude-ruby) ;;; prelude-ruby.el ends here ``` -------------------------------- ### Setting Prelude Color Theme to Solarized Dark in Emacs Lisp Source: https://github.com/bbatsov/prelude/blob/master/docs/configuration.md This Emacs Lisp snippet configures Prelude to use the 'solarized-dark' theme. Before using this, the 'solarized-theme' package must be installed via MELPA. This line should be placed in `personal/preload` to ensure the theme is loaded correctly. ```Emacs Lisp (setq prelude-theme 'solarized-dark) ``` -------------------------------- ### Disabling Package User Directory Override in Emacs Lisp Source: https://github.com/bbatsov/prelude/blob/master/docs/configuration.md By default, Prelude sets the directory for downloaded Emacs packages to '/elpa'. This snippet illustrates how to disable this override, allowing Emacs to use its default package installation directory or a directory specified elsewhere. Set 'prelude-override-package-user-dir' to nil before loading Prelude to apply this change. ```emacs-lisp (setq prelude-override-package-user-dir nil) ``` -------------------------------- ### Connecting to Emacs Daemon (Shell) Source: https://github.com/bbatsov/prelude/blob/master/docs/usage.md These commands connect to an already running Emacs daemon. `emacsclient -t` connects in a terminal, while `emacsclient -c` opens a new GUI client frame. They are used to interact with the persistent Emacs server. ```shell emacsclient -t emacsclient -c ``` -------------------------------- ### Opening File at Specific Line (Shell) Source: https://github.com/bbatsov/prelude/blob/master/docs/usage.md This command opens a specified file using `emacsclient` and positions the cursor directly on a particular line number. This is useful for quickly navigating to relevant sections of code or text from the command line. ```shell emacsclient somefile:1234 ``` -------------------------------- ### Setting Emacs Client Aliases (Bash) Source: https://github.com/bbatsov/prelude/blob/master/docs/usage.md These Bash aliases provide shorthand commands for connecting to the Emacs daemon. `e` and `ec` are for terminal and GUI connections respectively, while `vim` and `vi` aliases redirect common editor commands to `emacsclient -t` for convenience. ```bash alias e='emacsclient -t' alias ec='emacsclient -c' alias vim='emacsclient -t' alias vi='emacsclient -t' ``` -------------------------------- ### Activating Global Helm Features in Emacs Lisp Source: https://github.com/bbatsov/prelude/blob/master/docs/usage.md This snippet activates the `prelude-helm-everywhere` module, which enables global Helm key bindings for enhanced interactive commands like `helm-M-x`, `helm-find-files`, and `helm-show-kill-ring` across Emacs. It integrates Helm more deeply into the Emacs environment. ```emacs-lisp (require 'prelude-helm-everywhere) ``` -------------------------------- ### Configuring and Enabling Company-mode in Emacs Lisp Source: https://github.com/bbatsov/prelude/blob/master/docs/modules/company.md This snippet configures various default settings for `company-mode`, an Emacs completion library, such as idle delay, tooltip limits, and display options. It then globally enables `company-mode` across Emacs, providing intelligent code completion. The configuration adjusts the behavior of the completion popup for better user experience. ```Emacs Lisp (setq company-idle-delay 0.5) (setq company-show-numbers t) (setq company-tooltip-limit 10) (setq company-minimum-prefix-length 2) (setq company-tooltip-align-annotations t) ;; invert the navigation direction if the the completion popup-isearch-match ;; is displayed on top (happens near the bottom of windows) (setq company-tooltip-flip-when-above t) (global-company-mode 1) ``` -------------------------------- ### Customizing IRC Server List in Emacs Lisp Source: https://github.com/bbatsov/prelude/blob/master/docs/modules/erc.md This snippet redefines the `my-fav-irc` variable to specify a custom list of IRC servers that Prelude's `start-irc` command will attempt to join. It allows users to connect to preferred networks instead of the default ones. ```Emacs Lisp (setq my-fav-irc '("irc.freenode.net" "irc.oftc.net" "irc.mozilla.org" "irc.gnome.org")) ``` -------------------------------- ### Setting Prelude Color Theme to Tango in Emacs Lisp Source: https://github.com/bbatsov/prelude/blob/master/docs/configuration.md This snippet sets the `prelude-theme` variable to 'tango', making Tango the active color theme in Prelude. This configuration should be added to `personal/preload` for the theme to be applied early during Emacs startup. ```Emacs Lisp (setq prelude-theme 'tango) ``` -------------------------------- ### Restoring Default C-a Behavior (Emacs Lisp) Source: https://github.com/bbatsov/prelude/blob/master/docs/troubleshooting.md This Emacs Lisp snippet restores the default `C-a` (move-beginning-of-line) behavior globally. Prelude customizes `C-a` by default, and this snippet allows users to revert to the standard Emacs functionality for moving to the beginning of a line. ```emacs-lisp (global-set-key [remap move-beginning-of-line] 'move-beginning-of-line) ``` -------------------------------- ### Configuring Go Mode Autoformatting on Save in Emacs Lisp Source: https://github.com/bbatsov/prelude/blob/master/docs/configuration.md This Emacs Lisp snippet configures `go-mode` to automatically format Go files using `gofmt-before-save` before each save. It also sets the `tab-width` to 2 within `go-mode`. This code should be placed in a file like `config-go-mode.el` within your `personal/` directory. ```Emacs Lisp (add-hook 'go-mode-hook (lambda () (add-hook 'before-save-hook 'gofmt-before-save) (setq tab-width 2))) ``` -------------------------------- ### Adjusting Ido-flx Threshold (Emacs Lisp) Source: https://github.com/bbatsov/prelude/blob/master/docs/troubleshooting.md This Emacs Lisp snippet sets the `flx-ido-threshold` variable to `1000`. Lowering this threshold can improve `ido` matching performance on slower machines or with large datasets by reducing the complexity of the `flx` sorting algorithm. ```emacs-lisp (setq flx-ido-threshold 1000) ``` -------------------------------- ### Grouping ERC Buffers into a New Perspective in Emacs Lisp Source: https://github.com/bbatsov/prelude/blob/master/docs/modules/erc.md This snippet sets the `prelude-new-irc-persp` variable to `t` (true). When enabled, all ERC buffers opened by the `start-irc` command will be automatically grouped into a new perspective named 'IRC', helping to organize the workspace and prevent clutter. ```Emacs Lisp (setq prelude-new-irc-persp t) ``` -------------------------------- ### Reactivating Global Helm Mode in Emacs Lisp Source: https://github.com/bbatsov/prelude/blob/master/docs/usage.md This Emacs Lisp snippet explicitly reactivates the global Helm mode. It is useful if Helm was previously disabled or if you want to ensure its global features are active after certain configurations or mode changes. ```emacs-lisp (prelude-global-helm-global-mode-on) ``` -------------------------------- ### Disabling Guru-mode Warnings (Emacs Lisp) Source: https://github.com/bbatsov/prelude/blob/master/docs/troubleshooting.md This Emacs Lisp snippet disables the warnings issued by `guru-mode` when using arrow key navigation. Setting `guru-warn-only` to `nil` allows users to use arrow keys without being prompted about Emacs' intended navigation methods. ```emacs-lisp (setq guru-warn-only nil) ``` -------------------------------- ### Disabling All Color Themes in Prelude Emacs Lisp Source: https://github.com/bbatsov/prelude/blob/master/docs/configuration.md This snippet sets the `prelude-theme` variable to `nil`, effectively disabling any color theme from being loaded by Prelude. This should be added to your `personal/preload` file if you prefer to run Emacs without a specific theme. ```Emacs Lisp (setq prelude-theme nil) ``` -------------------------------- ### Setting Terminal Colors for Emacs (Bash) Source: https://github.com/bbatsov/prelude/blob/master/docs/troubleshooting.md This snippet sets the `TERM` environment variable to `xterm-256color` in `.bashrc` or `.zshrc`. This helps resolve issues with ugly or incorrect color rendering when running Emacs in a terminal, ensuring a richer color palette is used. ```bash export TERM=xterm-256color ``` -------------------------------- ### Disabling Prelude Guru-mode (Emacs Lisp) Source: https://github.com/bbatsov/prelude/blob/master/docs/troubleshooting.md This Emacs Lisp snippet completely disables `prelude-guru-mode`. Setting `prelude-guru` to `nil` turns off the `guru-mode` features provided by Prelude, which are designed to encourage Emacs' default navigation. ```emacs-lisp (setq prelude-guru nil) ``` -------------------------------- ### Disabling ERC Password Prompt for Auth-Source in Emacs Lisp Source: https://github.com/bbatsov/prelude/blob/master/docs/modules/erc.md This snippet sets `erc-prompt-for-password` to `nil`, which disables ERC's built-in password prompt. This allows ERC to automatically retrieve authentication details, such as NickServ passwords, from the Emacs `auth-source` plugin (e.g., from `.authinfo` or `.authinfo.gpg` files). ```Emacs Lisp (setq erc-prompt-for-password nil) ``` -------------------------------- ### Configuring macOS Modifier Keys in Emacs Lisp Source: https://github.com/bbatsov/prelude/blob/master/docs/usage.md This Emacs Lisp snippet reconfigures the default mapping of macOS modifier keys. It sets the 'Command' key to act as 'Meta' and the 'Option' key to act as 'Super' within Emacs, allowing users to customize their keybinding experience. This is typically added to a personal Emacs configuration file. ```Emacs Lisp (setq mac-command-modifier 'meta) (setq mac-option-modifier 'super) ``` -------------------------------- ### Disabling Specific Key-chord in Emacs Lisp Source: https://github.com/bbatsov/prelude/blob/master/docs/usage.md This Emacs Lisp snippet demonstrates how to disable a specific key-chord, such as "jj", by globally defining its command to `nil`. This is useful for customizing keybindings and preventing conflicts with personal preferences or other modes. ```emacs-lisp (key-chord-define-global "jj" nil) ``` -------------------------------- ### Disabling Ido-flx Mode (Emacs Lisp) Source: https://github.com/bbatsov/prelude/blob/master/docs/troubleshooting.md This Emacs Lisp snippet disables `flx-ido-mode` entirely. Disabling this mode reverts `ido` to its default flex matching, which can be useful if the `ido-flx` sorting algorithm causes performance issues. ```emacs-lisp (flx-ido-mode -1) ``` -------------------------------- ### Restoring C-a in Term/Ansi-term Modes (Emacs Lisp) Source: https://github.com/bbatsov/prelude/blob/master/docs/troubleshooting.md This Emacs Lisp snippet defines a hook for `term-mode` to remove the `C-a` binding specifically from `prelude-mode`'s keymap. This workaround ensures that `C-a` sends the key sequence directly to the terminal in `term-mode` or `ansi-term-mode`, restoring its default behavior in these contexts. ```emacs-lisp (defun my-term-mode-hook () (let ((oldmap (cdr (assoc 'prelude-mode minor-mode-map-alist))) (newmap (make-sparse-keymap))) (set-keymap-parent newmap oldmap) (define-key newmap (kbd "C-a") nil) (make-local-variable 'minor-mode-overriding-map-alist) (push `(prelude-mode . ,newmap) minor-mode-overriding-map-alist))) (add-hook 'term-mode-hook 'my-term-mode-hook) ``` -------------------------------- ### Disabling Super-based Keybindings in Emacs Lisp Source: https://github.com/bbatsov/prelude/blob/master/docs/configuration.md Out-of-the-box Prelude creates two versions of many keybindings: a 'traditional' Control-based version and an 'alternative' Super-based version. This snippet shows how to prevent Prelude from creating Super-based keybindings, which can conflict with operating system or desktop environment shortcuts, especially in environments like exwm. Set 'prelude-super-keybindings' to nil to disable this behavior. ```emacs-lisp (setq prelude-super-keybindings nil) ``` -------------------------------- ### Disabling Global Key-chord Mode in Emacs Lisp Source: https://github.com/bbatsov/prelude/blob/master/docs/usage.md This Emacs Lisp snippet disables `key-chord-mode` globally by passing `-1` as an argument. This is particularly recommended for users of `evil-mode` to avoid potential keybinding conflicts and ensure `evil-mode`'s keybindings take precedence. ```emacs-lisp (key-chord-mode -1) ``` -------------------------------- ### Customizing IRC Quit Message in Emacs Lisp Source: https://github.com/bbatsov/prelude/blob/master/docs/modules/erc.md This snippet redefines the `bye-erc-message` variable, allowing users to set a custom message that will be sent when quitting IRC. This overrides the default 'Asta la vista' message. ```Emacs Lisp (setq bye-erc-message "adios") ``` -------------------------------- ### Disabling Line Numbers and Menu Bar in Emacs Lisp Source: https://github.com/bbatsov/prelude/blob/master/docs/configuration.md This snippet disables global line numbering (`global-nlinum-mode`) and the menu bar (`menu-bar-mode`) in Emacs. Setting the mode to `-1` effectively turns it off. This can be added to your personal configuration to revert to a more minimalistic UI. ```Emacs Lisp (global-nlinum-mode -1) (menu-bar-mode -1) ``` -------------------------------- ### Disabling Projectile in Emacs Lisp Source: https://github.com/bbatsov/prelude/blob/master/docs/configuration.md Prelude automatically configures Projectile for project interaction. This snippet demonstrates how to disable Projectile integration if it's not desired. Add this line to your Emacs configuration to prevent Prelude from setting up Projectile. ```emacs-lisp (setq prelude-projectile nil) ``` -------------------------------- ### Enabling Automatic Python File Encoding Comments in Emacs Lisp Source: https://github.com/bbatsov/prelude/blob/master/docs/modules/python.md This Emacs Lisp snippet configures Prelude to automatically detect and insert appropriate # coding: comments in Python source buffers. This feature was more critical for Python 2, which did not default to UTF-8 encoding, unlike Python 3. Setting prelude-python-mode-set-encoding-automatically to t enables this behavior. ```Emacs Lisp (setq prelude-python-mode-set-encoding-automatically t) ``` -------------------------------- ### Disabling Automatic Formatting on Save in Prelude Emacs Lisp Source: https://github.com/bbatsov/prelude/blob/master/docs/configuration.md This Emacs Lisp snippet disables automatic file formatting on save in Prelude by setting `prelude-format-on-save` to `nil`. Currently, this primarily affects automated formatting for Typescript files. This should be added to your personal configuration. ```Emacs Lisp (setq prelude-format-on-save nil) ``` -------------------------------- ### Disabling hippie-expand in Emacs Lisp Source: https://github.com/bbatsov/prelude/blob/master/docs/configuration.md Prelude configures 'hippie-expand' as a replacement for Emacs' default 'dabbrev' completion. This snippet shows how to disable this behavior, reverting to Emacs' default completion mechanism. Add this line to your configuration to prevent 'hippie-expand' from being set up by Prelude. ```emacs-lisp (setq prelude-hippie-expand nil) ``` -------------------------------- ### Disabling Zenburn Color Theme in Emacs Lisp Source: https://github.com/bbatsov/prelude/blob/master/docs/configuration.md This Emacs Lisp snippet disables the 'zenburn' color theme. It should be placed in your personal configuration to prevent Zenburn from being loaded as the default theme, allowing you to use a different theme or no theme at all. ```Emacs Lisp (disable-theme 'zenburn) ``` -------------------------------- ### Disabling Whitespace Mode in Prelude Emacs Lisp Source: https://github.com/bbatsov/prelude/blob/master/docs/configuration.md This snippet disables `whitespace-mode` in Prelude by setting the `prelude-whitespace` variable to `nil`. This should be added to your personal configuration if you find the visual indicators of whitespace too intrusive. ```Emacs Lisp (setq prelude-whitespace nil) ``` -------------------------------- ### Disabling Flyspell Mode in Prelude Emacs Lisp Source: https://github.com/bbatsov/prelude/blob/master/docs/configuration.md This snippet disables `flyspell-mode`, which provides on-the-fly spellchecking, by setting the `prelude-flyspell` variable to `nil`. Add this to your personal configuration if you prefer not to have automatic spellchecking enabled. ```Emacs Lisp (setq prelude-flyspell nil) ``` -------------------------------- ### Disabling Whitespace Cleanup on Save in Prelude Emacs Lisp Source: https://github.com/bbatsov/prelude/blob/master/docs/configuration.md This Emacs Lisp snippet prevents `whitespace-mode` from automatically cleaning up whitespace on file save by setting `prelude-clean-whitespace-on-save` to `nil`. This allows you to keep `whitespace-mode` active for visual cues without automatic modifications to your files. ```Emacs Lisp (setq prelude-clean-whitespace-on-save nil) ``` === COMPLETE CONTENT === This response contains all available snippets from this library. No additional content exists. Do not make further requests.