Commit a223c6d0 authored by santu pham's avatar santu pham

fixed bug emacs26

parent 2ea7eb50
Pipeline #35800 failed with stage
......@@ -63,6 +63,7 @@
(add-to-list 'package-archives '("ELPA" . "http://tromey.com/elpa/"))
(add-to-list 'package-archives '("gnu" . "http://elpa.gnu.org/packages/"))
(add-to-list 'package-archives '("MELPA" . "http://melpa.milkbox.net/packages/"))
(add-to-list 'package-archives '("melpa-stable" . "http://melpa.org/packages/") t)
(package-initialize)
)
......
......@@ -4,12 +4,12 @@ function version { echo "$@" | awk -F. '{ printf("%03d%03d%03d\n", $1,$2,$3); }'
# apt-get install -y software-properties-common
# install emacs25
if ! [ -x "$(command -v emacs25)" ]; then
echo "install emacs25"
# install emacs26
if ! [ -x "$(command -v emacs26)" ]; then
echo "install emacs26"
sudo add-apt-repository -y ppa:kelleyk/emacs
sudo apt-get update
sudo apt-get install -y emacs25
sudo apt-get install -y emacs26
fi
# install git
if ! [ -x "$(command -v git)" ]; then
......@@ -56,15 +56,15 @@ fi
# .. for bash
if [ -f ~/.bashrc ]; then
echo "make bash alias em"
echo "alias em=\"emacs25\"" >> ~/.bashrc
echo "alias emacs=\"emacs25\"" >> ~/.bashrc
echo "alias em=\"emacs26\"" >> ~/.bashrc
echo "alias emacs=\"emacs26\"" >> ~/.bashrc
. ~/.bashrc
fi
# .. and for zsh
if [ -f ~/.zshrc ]; then
echo "make zsh alias em"
echo "alias em=\"emacs25\"" >> ~/.zshrc
echo "alias emacs=\"emacs25\"" >> ~/.zshrc
echo "alias em=\"emacs26\"" >> ~/.zshrc
echo "alias emacs=\"emacs26\"" >> ~/.zshrc
. ~/.zshrc
fi
......@@ -77,4 +77,4 @@ fi
echo "Clone emacs config.."
git clone https://gitlab.version.fz-juelich.de/chraibi1/san_emacs.git $HOME/.emacs.d
echo "start emacs ..."
emacs25 -nw
emacs26 -nw
......@@ -65,6 +65,7 @@ Always use `C-g` when you mess up
- `C-c n` search for pattern in a project (directory)
- `C-xb` open list of buffers, then `x` to kill
- 'C-x b' swith buffers
- 'M-x' load-theme
# Spelling
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment