mirror of
https://github.com/vale981/emacs-ipython-notebook
synced 2025-03-06 09:31:39 -05:00

As emacs users we prefer and have the luxury of fuzzy file navigation via ido and projectile. From a notebook or notebooklist buffer, the commands `C-c C-f` ein:file-open `C-c C-o` ein:notebook-open offer an ido alternative to point and click navigation. To populate the ido lists, retrieving the content hierarchy is on by default. Two custom variables determine how wide and deep the content query probes (currently at 2 levels deep and 6 directories wide). Set both to zero to turn off. tkf half finished code to quickly go from local file buffers to notebook mode via `C-c C-z` or `C-c C-o`. This is now possible. EIN will start the server from a suitable parent directory of the visited file. Enable ido completion for `notebooklist-login`. Remove the albatross `ein-loaddefs.el` in favor of more standard `ein-autoloads.el` that is not git tracked. Convenience `make install` from git source (local alternative to melpa).
38 lines
1 KiB
Bash
38 lines
1 KiB
Bash
#!/bin/bash
|
|
|
|
# Install cask for Travis CI
|
|
# or if already installed, then check for updates
|
|
# Author: gonewest818 https://github.com/clojure-emacs/cider/pull/2139
|
|
|
|
set -x
|
|
|
|
WORKDIR=${HOME}/local
|
|
CASKDIR=$WORKDIR/cask
|
|
|
|
. tools/retry.sh
|
|
|
|
cask_upgrade_cask_or_reset() {
|
|
cask upgrade-cask || { rm -rf $HOME/.emacs.d/.cask && false; }
|
|
}
|
|
|
|
cask_install_or_reset() {
|
|
if [ $(cask eval "(princ emacs-major-version)") -gt "25" ]; then
|
|
echo "!!!! ALERT WORKAROUND !!!!"
|
|
set -x
|
|
grep -v "org-plus-contrib" ./Cask > ./Cask.tmp
|
|
mv ./Cask.tmp ./Cask
|
|
set +x
|
|
fi
|
|
cask install || { rm -rf .cask && false; }
|
|
}
|
|
|
|
# Bootstrap the cask tool and its dependencies
|
|
if [ ! -d $CASKDIR ] ; then
|
|
git clone https://github.com/cask/cask.git $CASKDIR
|
|
fi
|
|
|
|
# Install dependencies for cider as descriped in ./Cask
|
|
# Effect is identical to "make elpa", but here we can retry
|
|
# in the event of network failures.
|
|
travis_retry cask_upgrade_cask_or_reset
|
|
travis_retry cask_install_or_reset && touch elpa-emacs
|