Skip to content
Snippets Groups Projects
Commit a223c6d0 authored by san's avatar san
Browse files

fixed bug emacs26

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