Compare commits

...

10 commits

Author SHA1 Message Date
Jennifer Page
1e9336dc03 Turn off super-save in rust-mode
Some checks failed
CI / build (push) Failing after 13s
Related to #1372, it appears that `super-save` doesn't play nicely
with LSP features in `rust-mode`.
2024-04-03 07:58:27 +03:00
Bozhidar Batsov
7aa4ae9fc1 Add the required readthedocs.yml 2024-02-15 15:48:38 +02:00
Bozhidar Batsov
ed0996ddad Update the copyright years 2024-02-15 15:48:38 +02:00
Yves Martin
ac5fd5c9e3 Add details about Windows HOME 2023-11-20 07:19:50 +00:00
Byron Clark
b57ff48e09 Use js2-mode for additional Node.js extensions.
Node.js can file extensions to force ECMAScript (.mjs) versus
CommonJS (.cjs) module systems. They're both JavaScript files so use
js2-mode when editing them.
2023-04-14 22:31:32 +03:00
Byron Clark
ce86286127 Remove consult-apropos
consult.el [Version
0.32](https://github.com/minad/consult/blob/main/CHANGELOG.org#version-032-2023-02-06)
removed the `consult-apropos` function. Remove the keybinding from
prelude configuration so that a working apropos is available.
2023-03-26 16:27:38 +03:00
Bozhidar Batsov
fcb629acb6 Add a Discord badge 2023-02-24 08:55:01 +01:00
Bozhidar Batsov
8602e6a3e7 Add a CI badge to the README 2023-02-24 08:52:31 +01:00
Bozhidar Batsov
6e9adfc36b Add a missing section heading 2023-02-24 08:41:23 +01:00
Bozhidar Batsov
a647721009 Add a missing provide 2023-02-24 08:40:35 +01:00
9 changed files with 33 additions and 6 deletions

View file

@ -1,4 +1,4 @@
name: Prelude CI name: CI
on: push on: push
jobs: jobs:
build: build:

View file

@ -23,6 +23,7 @@
* The keybinding for `proced` is now enabled unconditionally. * The keybinding for `proced` is now enabled unconditionally.
* Replace prelude-go backend with `lsp` instead of unmaintained tools. * Replace prelude-go backend with `lsp` instead of unmaintained tools.
* Use `rust-analyzer` as language server for prelude-rust and provide nicer syntax highlighting with `tree-sitter`. * Use `rust-analyzer` as language server for prelude-rust and provide nicer syntax highlighting with `tree-sitter`.
* Use `js2-mode` for Node.js specific `.cjs` and `.mjs` extensions.
### Bugs fixed ### Bugs fixed
@ -33,6 +34,7 @@
* Fix fall back to sample `prelude-modules.el` not working if user has installed to non-default location. * Fix fall back to sample `prelude-modules.el` not working if user has installed to non-default location.
* Stop requiring `helm-config` since upstream has removed the module. * Stop requiring `helm-config` since upstream has removed the module.
* Require `typescript-mode` using `prelude-require-packages` to avoid error upon inclusion in `personal/prelude-modules.el`. * Require `typescript-mode` using `prelude-require-packages` to avoid error upon inclusion in `personal/prelude-modules.el`.
* Turn off `super-save` in `rust-mode` to prevent severe hangs during autocomplete.
## 1.1.0 (2021-02-14) ## 1.1.0 (2021-02-14)

View file

@ -1,5 +1,7 @@
[![License GPL 3][badge-license]](http://www.gnu.org/licenses/gpl-3.0.txt) [![License GPL 3][badge-license]](http://www.gnu.org/licenses/gpl-3.0.txt)
[![CI](https://github.com/bbatsov/prelude/workflows/CI/badge.svg)](https://github.com/bbatsov/prelude/actions/workflows/ci.yml)
[![Patreon](https://img.shields.io/badge/patreon-donate-orange.svg)](https://www.patreon.com/bbatsov) [![Patreon](https://img.shields.io/badge/patreon-donate-orange.svg)](https://www.patreon.com/bbatsov)
[![Discord](https://img.shields.io/badge/chat-on%20discord-7289da.svg?sanitize=true)](https://discord.gg/3Cf2Qpyry5)
Emacs Prelude Emacs Prelude
============= =============

View file

@ -72,6 +72,8 @@ $ cd ~/.emacs.d
If you are using Windows, you should check what Emacs thinks the `~` directory is by running Emacs If you are using Windows, you should check what Emacs thinks the `~` directory is by running Emacs
and typing `C-x d ~/<RET>`, and then adjust the command appropriately. and typing `C-x d ~/<RET>`, and then adjust the command appropriately.
It is recommended to explicitly set HOME environment variable.
For details, please refer to [Emacs manual Windows-HOME section](https://www.gnu.org/software/emacs/manual/html_node/emacs/Windows-HOME.html)
### System-wide (site-wide) ### System-wide (site-wide)

View file

@ -1,6 +1,6 @@
site_name: "Prelude: A sleek, modern, simple and powerful Emacs experience for everyone" site_name: "Prelude: A sleek, modern, simple and powerful Emacs experience for everyone"
repo_url: https://github.com/bbatsov/prelude repo_url: https://github.com/bbatsov/prelude
copyright: "Copyright (C) 2011-2023 Bozhidar Batsov and Prelude contributors" copyright: "Copyright (C) 2011-2024 Bozhidar Batsov and Prelude contributors"
docs_dir: docs docs_dir: docs
nav: nav:
- Home: index.md - Home: index.md

View file

@ -36,6 +36,7 @@
(require 'js2-mode) (require 'js2-mode)
(add-to-list 'auto-mode-alist '("\\.js\\'" . js2-mode)) (add-to-list 'auto-mode-alist '("\\.js\\'" . js2-mode))
(add-to-list 'auto-mode-alist '("\\.[cm]js\\'" . js2-mode))
(add-to-list 'auto-mode-alist '("\\.pac\\'" . js2-mode)) (add-to-list 'auto-mode-alist '("\\.pac\\'" . js2-mode))
(add-to-list 'interpreter-mode-alist '("node" . js2-mode)) (add-to-list 'interpreter-mode-alist '("node" . js2-mode))

View file

@ -48,6 +48,9 @@
(require 'tree-sitter) (require 'tree-sitter)
(require 'tree-sitter-langs) (require 'tree-sitter-langs)
(add-to-list 'super-save-predicates
(lambda () (not (eq major-mode 'rust-mode))))
(with-eval-after-load 'rust-mode (with-eval-after-load 'rust-mode
(add-hook 'rust-mode-hook 'cargo-minor-mode) (add-hook 'rust-mode-hook 'cargo-minor-mode)
(add-hook 'flycheck-mode-hook 'flycheck-rust-setup) (add-hook 'flycheck-mode-hook 'flycheck-rust-setup)

View file

@ -29,6 +29,7 @@
;; Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, ;; Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor,
;; Boston, MA 02110-1301, USA. ;; Boston, MA 02110-1301, USA.
;;; Code:
(require 'use-package) (require 'use-package)
;; Enable vertico ;; Enable vertico
@ -102,7 +103,6 @@
("C-M-#" . consult-register) ("C-M-#" . consult-register)
;; Other custom bindings ;; Other custom bindings
("M-y" . consult-yank-pop) ;; orig. yank-pop ("M-y" . consult-yank-pop) ;; orig. yank-pop
("<help> a" . consult-apropos) ;; orig. apropos-command
;; M-g bindings (goto-map) ;; M-g bindings (goto-map)
("M-g e" . consult-compile-error) ("M-g e" . consult-compile-error)
("M-g f" . consult-flycheck) ("M-g f" . consult-flycheck)
@ -124,3 +124,6 @@
("M-s m" . consult-multi-occur) ("M-s m" . consult-multi-occur)
("M-s k" . consult-keep-lines) ("M-s k" . consult-keep-lines)
("M-s u" . consult-focus-lines))) ("M-s u" . consult-focus-lines)))
(provide 'prelude-vertico)
;;; prelude-vertico.el ends here

14
readthedocs.yml Normal file
View file

@ -0,0 +1,14 @@
# Read the Docs configuration file for MkDocs projects
# See https://docs.readthedocs.io/en/stable/config-file/v2.html for details
# Required
version: 2
# Set the version of Python and other tools you might need
build:
os: ubuntu-22.04
tools:
python: "3.12"
mkdocs:
configuration: mkdocs.yml