Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

How do I install it? #17

Open
jpffitch opened this issue Mar 1, 2021 · 6 comments
Open

How do I install it? #17

jpffitch opened this issue Mar 1, 2021 · 6 comments

Comments

@jpffitch
Copy link

jpffitch commented Mar 1, 2021

How do I install it? Tried package-instal and it bombs

My stupidity I know but....

@jpffitch
Copy link
Author

jpffitch commented Mar 1, 2021

and where is shut-up.el ?

@hlolli
Copy link
Owner

hlolli commented Mar 1, 2021

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!

@hlolli
Copy link
Owner

hlolli commented Mar 3, 2021

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.

@jpffitch
Copy link
Author

jpffitch commented Mar 3, 2021 via email

@hlolli
Copy link
Owner

hlolli commented Mar 5, 2021

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

@bugthunk
Copy link

bugthunk commented Mar 1, 2023

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants