[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[nongnu] elpa/scala-mode a1ea0b7 097/217: Proper instructions and autolo
From: |
ELPA Syncer |
Subject: |
[nongnu] elpa/scala-mode a1ea0b7 097/217: Proper instructions and autoload settings for package-based install |
Date: |
Sun, 29 Aug 2021 11:30:51 -0400 (EDT) |
branch: elpa/scala-mode
commit a1ea0b73ddac63e1340e20fd57db5eeeae15033b
Author: Heikki Vesalainen <heikkivesalainen@yahoo.com>
Commit: Heikki Vesalainen <heikkivesalainen@yahoo.com>
Proper instructions and autoload settings for package-based install
---
README.md | 19 +++----------------
scala-mode2-indent.el | 4 ++++
scala-mode2-pkg.el | 4 ++--
scala-mode2.el | 10 +++++-----
4 files changed, 14 insertions(+), 23 deletions(-)
diff --git a/README.md b/README.md
index 6f63169..c6c274f 100644
--- a/README.md
+++ b/README.md
@@ -40,22 +40,9 @@ to the load-path and then to require it. For more
information regarding
(require 'package)
(add-to-list 'package-archives
'("melpa" . "http://melpa.milkbox.net/packages/") t)
- ```
-
- Once the location of the package repository has been added to your
- Emacs config, simply navigate to the package view within Emacs, or use
- `M-x package-list-packages` to list the available packages.
- Mark the package `scala-mode2` and execute the actions (`X`) to install
- the mode.
-
- The remaining config that is required is to edit the Emacs config
- to activate the mode:
-
- ```
- (add-to-list 'auto-mode-alist
- '("\\.scala" . scala-mode2)
- '("\\.sbt\\'" . scala-mode2)
- )
+ (package-initialize)
+ (unless (package-installed-p 'scala-mode2)
+ (package-refresh-contents) (package-install 'scala-mode2))
```
2. Manual:
diff --git a/scala-mode2-indent.el b/scala-mode2-indent.el
index 3ba69b9..d947828 100644
--- a/scala-mode2-indent.el
+++ b/scala-mode2-indent.el
@@ -5,6 +5,10 @@
(require 'scala-mode2-syntax)
(require 'scala-mode2-lib)
+(eval-when-compile
+ (defvar scala-indent:effective-run-on-strategy)
+ (defvar scala-indent:previous-indent-pos))
+
(defcustom scala-indent:step 2
"The number of spaces an indentation step should be. The actual
indentation will be one or two steps depending on context."
diff --git a/scala-mode2-pkg.el b/scala-mode2-pkg.el
index 6bc2b08..986ff4d 100644
--- a/scala-mode2-pkg.el
+++ b/scala-mode2-pkg.el
@@ -1,2 +1,2 @@
-(define-package "scala-mode2" "0.2"
- "Major mode for editing Scala >= 2.9")
+(define-package "scala-mode2" "20130219.1022" "Major mode for editing Scala >=
2.9 [source: github]" 'nil)
+
diff --git a/scala-mode2.el b/scala-mode2.el
index 65a8a0d..c53765f 100644
--- a/scala-mode2.el
+++ b/scala-mode2.el
@@ -101,11 +101,11 @@ When started, runs `scala-mode-hook'.
)
;; Attach .scala files to the scala-mode
-(add-to-list 'auto-mode-alist '("\\.sbt\\'" . scala-mode))
-(modify-coding-system-alist 'file "\\.sbt\\'" 'utf-8)
-
-(add-to-list 'auto-mode-alist '("\\.scala\\'" . scala-mode))
-(modify-coding-system-alist 'file "\\.scala\\'" 'utf-8)
+;;;###autoload
+(progn
+ (add-to-list 'auto-mode-alist
+ '("\\.\\(scala\\|sbt\\)\\'" . scala-mode))
+ (modify-coding-system-alist 'file "\\.\\(scala\\|sbt\\)\\'" 'utf-8))
(provide 'scala-mode2)
;;; scala-mode2.el ends here
- [nongnu] elpa/scala-mode 730e16d 186/217: Merge pull request #130 from ensime/fix/120, (continued)
- [nongnu] elpa/scala-mode 730e16d 186/217: Merge pull request #130 from ensime/fix/120, ELPA Syncer, 2021/08/29
- [nongnu] elpa/scala-mode 1dd5825 085/217: Added comment syntax for bash preambles (#!...!#) in scala script files, ELPA Syncer, 2021/08/29
- [nongnu] elpa/scala-mode 16d6f36 067/217: Added a not to README about font-lock-doc-face, ELPA Syncer, 2021/08/29
- [nongnu] elpa/scala-mode b55ca83 066/217: Merge pull request #23 from hvesalai/issue22, ELPA Syncer, 2021/08/29
- [nongnu] elpa/scala-mode aa38dae 083/217: Fixes #38: 100% CPU usage for multi-line strings in some cases., ELPA Syncer, 2021/08/29
- [nongnu] elpa/scala-mode 0af3b07 069/217: Added Makefile and fixed compilation warnings, ELPA Syncer, 2021/08/29
- [nongnu] elpa/scala-mode be89855 084/217: Multi-line comment indentation and asterisk-insertion on mid-line return., ELPA Syncer, 2021/08/29
- [nongnu] elpa/scala-mode 711091a 087/217: moved provides to end of files, ELPA Syncer, 2021/08/29
- [nongnu] elpa/scala-mode 6312b36 082/217: Make the code agreeable to Emacs-Lisp mode, ELPA Syncer, 2021/08/29
- [nongnu] elpa/scala-mode 18a52f0 094/217: Update installation instructions, ELPA Syncer, 2021/08/29
- [nongnu] elpa/scala-mode a1ea0b7 097/217: Proper instructions and autoload settings for package-based install,
ELPA Syncer <=
- [nongnu] elpa/scala-mode 763c93c 107/217: scala-indent:join-line, ELPA Syncer, 2021/08/29
- [nongnu] elpa/scala-mode c62ecf9 109/217: Update README.md, ELPA Syncer, 2021/08/29
- [nongnu] elpa/scala-mode aea047a 104/217: Create .gitignore with *.elc, ELPA Syncer, 2021/08/29
- [nongnu] elpa/scala-mode d4cccb0 112/217: scala-mode:set-scala-syntax-mode to support sbt-mode, ELPA Syncer, 2021/08/29
- [nongnu] elpa/scala-mode c9dd697 103/217: alphaid-re for SIP11 support, ELPA Syncer, 2021/08/29
- [nongnu] elpa/scala-mode 89c7138 102/217: Merge pull request #52 from non/topic/octal-escapes, ELPA Syncer, 2021/08/29
- [nongnu] elpa/scala-mode 600d27b 115/217: join-line cannot be re-defined like this, ELPA Syncer, 2021/08/29
- [nongnu] elpa/scala-mode 890b7eb 129/217: Document */ behavior in multi-line comments., ELPA Syncer, 2021/08/29
- [nongnu] elpa/scala-mode 3d330ad 126/217: Makefile clean-up 2, ELPA Syncer, 2021/08/29
- [nongnu] elpa/scala-mode 6c4e8dc 128/217: Delete automatic space between * and /., ELPA Syncer, 2021/08/29