From a223c6d0824251987acd563085a2347b63a0fc32 Mon Sep 17 00:00:00 2001
From: san <phamtusan@gmail.com>
Date: Fri, 1 May 2020 13:01:27 +0200
Subject: [PATCH] fixed bug emacs26

---
 init.el   |  3 ++-
 init.sh   | 18 +++++++++---------
 readme.md |  1 +
 3 files changed, 12 insertions(+), 10 deletions(-)
 mode change 100644 => 100755 init.sh

diff --git a/init.el b/init.el
index 38758f9..ed8b3a7 100644
--- a/init.el
+++ b/init.el
@@ -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)
   )
 
@@ -227,7 +228,7 @@
  '(org-time-stamp-custom-formats (quote ("<%d/%m/%Y %a>" . "<%d/%m/%Y  %a [%H:%M]>")))
  '(package-selected-packages
    (quote
-    (multi-term nterm powerline zenburn-theme use-package undo-tree solarized-theme sml-modeline org-journal  multiple-cursors magit latex-preview-pane ido-vertical-mode hlinum highlight-indentation guide-key golden-ratio flycheck exec-path-from-shell dired-details diminish counsel color-theme browse-kill-ring autopair auto-complete auctex-latexmk)))
+    (multi-term nterm powerline zenburn-theme use-package undo-tree solarized-theme sml-modeline org-journal multiple-cursors magit latex-preview-pane ido-vertical-mode hlinum highlight-indentation guide-key golden-ratio flycheck exec-path-from-shell dired-details diminish counsel color-theme browse-kill-ring autopair auto-complete auctex-latexmk)))
  '(python-indent-guess-indent-offset nil)
  '(sml/battery-format " [ %p ] ")
  '(sml/show-client t))
diff --git a/init.sh b/init.sh
old mode 100644
new mode 100755
index cdcbfc6..c1f29d2
--- a/init.sh
+++ b/init.sh
@@ -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
diff --git a/readme.md b/readme.md
index 856693b..1015140 100644
--- a/readme.md
+++ b/readme.md
@@ -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
-- 
GitLab