csound-mode
csound-mode copied to clipboard
How do I install it?
How do I install it? Tried package-instal and it bombs
My stupidity I know but....
and where is shut-up.el ?
Hi @jpffitch package-install should resolve the dependencies since they are declared in the comments in an elpa specific way. But I notice that shup-up.el and multi.el have been either removed or renamed, so I'll need to have a look and fix them. shut-up.el can be removed I think (since it was just a way to prevent errors popping up in the message buffer which I've since fixed) and multi.el was a polymorphic multimethod dispatcher which can be found in many other emacs packages. I will fix and let you know asap!
I'll add that I tested using sandboxed emacs 27.1 and added melpa, did M-x list-packages and found the listing for csound-mode, installed it
Package csound-mode is installed.
Status: Installed in ‘csound-mode-20200518.1546/’ (unsigned). Delete
Version: 20200518.1546
Commit: b6e8167c927c400c291daaa46a8aea132834b07c
Summary: A major mode for interacting and coding Csound
Requires: emacs-25, shut-up-0.3.2, multi-2.0.1, dash-2.16.0, highlight-0
Homepage: https://github.com/hlolli/csound-mode
Maintainer: Hlöðver Sigurðsson <[email protected]>
Author: Hlöðver Sigurðsson <[email protected]>
Other versions: 20200518.1546 (melpa).
This file stores mode-specific bindings to `csound-mode`,
"offline" csound-interactions and major-mode definition,
syntax table.
[back]
The "requires" seems to link correctly to the dependencies including shut-up.el, so it should work as is.
I think you overthink my level of expertese. Despite using emacs since about 1981 I only recently heard about melpa but have no idea how to use it. Attempts to call package-install gave an error on emacs with a backtrace.
Manual install failed with missing shut-up and other similar Get TypeApp for Android
On 3 Mar 2021, 01:55, at 01:55, "Hlöðver Sigurðsson" [email protected] wrote:
I'll add that I tested using sandboxed emacs 27.1 and added melpa, did M-x list-packages and found the listing for csound-mode, installed it
Package csound-mode is installed. Status: Installed in ‘csound-mode-20200518.1546/’ (unsigned). Delete Version: 20200518.1546 Commit: b6e8167c927c400c291daaa46a8aea132834b07c Summary: A major mode for interacting and coding Csound Requires: emacs-25, shut-up-0.3.2, multi-2.0.1, dash-2.16.0, highlight-0 Homepage: https://github.com/hlolli/csound-mode Maintainer: Hlöðver Sigurðsson <[email protected]> Author: Hlöðver Sigurðsson <[email protected]> Other versions: 20200518.1546 (melpa). This file stores mode-specific bindings to `csound-mode`, "offline" csound-interactions and major-mode definition, syntax table. [back]The "requires" seems to link correctly to the dependencies including shut-up.el, so it should work as is.
-- You are receiving this because you were mentioned. Reply to this email directly or view it on GitHub: https://github.com/hlolli/csound-mode/issues/17#issuecomment-789364215
Ok no problem. So you have two options:
1. Add the following emacs lisp code into ~/.emacs.d/init.el and if this directory and file don't exist, you can create it and emacs should be able to find it. There's a clause about EMACSPATH I think in the official manual if this doesn't work.
(require 'package)
(add-to-list 'package-archives '("melpa" . "https://melpa.org/packages/") t)
You can restart emacs and these s-expressions should be evaluated every time you open emacs, alternatively you can evaluate these s-expressions when the cursor is located anywhere within the s-exp block by pressing ctrl+meta+x keysequence.
With melpa added to package-archives list, you can use M-x (meta-x (alt and x)) and you'll be able to type a command into a mini-buffer, located usually at the bottom of the emacs window. There you can type list-packages, which should open an new buffer called *Packages*, you'll find a lot of packages, but if csound-mode isn't listed there. You most likely need to refersh it to see all the available packages. so you'll need to open the minibuffer again and type package-refresh-contents and it should start to download the listing of all the available package from the melpa repository.
There, if all is working right, you should be able to find csound-mode by searching for it (like you'd search normally). And when you see it listed, with the cursor you should be able to open it by pressing enter and yet another buffer should pop up, where there's a semi-graphical "Install" button which you can press by placing the cursor there and press enter.
2 Add the dependencies manually one by one, by downloading them and place them in a folder and add that folder to load-paths, a tutorial how to add new folders to load-path can be found here: https://www.emacswiki.org/emacs/LoadPath or alternatively call is directly with load or load-file, examples of that you can find here http://ergoemacs.org/emacs/elisp_library_system.html
so the files you'd want to add manually are: https://raw.githubusercontent.com/cask/shut-up/master/shut-up.el https://raw.githubusercontent.com/kurisuwhyte/emacs-multi/master/multi.el https://raw.githubusercontent.com/magnars/dash.el/master/dash.el https://raw.githubusercontent.com/emacsmirror/highlight/9258a2b8362d737115cbd87618f947eadb140411/highlight.el
Can I in some way help fix the melpa way of installing this? New to CSound but not to Emacs. After a package refresh I try installing but it's unable to find highlight-0. Maybe there's more after that, but I can't get any further.