Commit 1100cc4c authored by Mohcine Chraibi's avatar Mohcine Chraibi
parents 9a3386c6 e9c29703
Pipeline #8944 canceled with stage
......@@ -8,6 +8,7 @@
;(add-to-list 'load-path "~/.emacs.d/auto-complete-clang/")
;(dd-to-list 'load-path "~/.emacs.d/lisp/benchmark-init-el")
;(add-to-list 'load-path "/usr/local/share/emacs/site-lisp/doxymacs")
;(add-to-list 'load-path "~/.emacs.d/site-lisp/auctex")
;(require 'benchmark-init-loaddefs)
;(benchmark-init/activate)
......@@ -15,7 +16,8 @@
;; "Time emacs starts loading"
;; )
(setenv "ESHELL" (expand-file-name "~/bin/eshell"))
;;(setenv "ESHELL" (expand-file-name "~/bin/eshell"))
(global-set-key [f12] 'multi-term)
;; use smart line
......@@ -90,6 +92,7 @@
;yasnippet
;expand-region
multiple-cursors
multi-term
;dired+
;sx
linum
......@@ -212,10 +215,22 @@
'(c-basic-offset 6)
'(c-default-style (quote ((c-mode . "stroustrup") (c++-mode . "stroustrup"))))
'(ecb-options-version "2.40")
'(org-agenda-ndays 7)
'(org-agenda-show-all-dates t)
'(org-agenda-skip-deadline-if-done t)
'(org-agenda-skip-scheduled-if-done t)
'(org-agenda-start-on-weekday nil)
'(org-deadline-warning-days 14)
'(org-display-custom-times t)
'(org-fast-tag-selection-single-key (quote expert))
'(org-reverse-note-order t)
'(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 org-fstree 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)
)
'(sml/show-client t))
(message "load packages")
......@@ -242,7 +257,7 @@
;; (autoload 'flycheck "flycheck" "load flycheck" t)
;(autoload 'multiple-cursors "multiple-cursors" "load multiple-cursors" t)
;(require 'multiple-cursors)
(use-package multi-cursors
(use-package multiple-cursors
;; Loads after 2 second of idle time.
:defer 2
:config
......@@ -662,3 +677,9 @@ abort completely with `C-g'."
(message "DONE")
(provide 'init)
;;; init.el ends here
(custom-set-faces
;; custom-set-faces was added by Custom.
;; If you edit it by hand, you could mess it up, so be careful.
;; Your init file should contain only one such instance.
;; If there is more than one, they won't work right.
'(show-paren-match ((((class color) (background light)) (:background "blue")))))
<<<<<<< HEAD
q#!/bin/bash
=======
#!/bin/bash
## each separate version number must be less than 3 digit wide !
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"
sudo add-apt-repository -y ppa:kelleyk/emacs
sudo apt-get update
sudo apt-get install -y emacs25
fi
# install git
if ! [ -x "$(command -v git)" ]; then
echo "install git"
sudo add-apt-repository -y ppa:kelleyk/emacs
sudo apt-get update
sudo apt-get install -y git
fi
# check git version for magit!
git_version=`git --version | awk '{print $3}'`
if [ "$(version "$git_version")" -lt "$(version "2.14")" ]; then
echo "update git"
sudo add-apt-repository -y ppa:git-core/ppa
sudo apt-get update
sudo apt-get install -y git
fi
>>>>>>> e9c2970370c00ac377540f474462c1a612aad775
# install emacs
sudo apt-get update
sudo apt-get install -y emacs
sudo apt-get clean
# directory for orgfiles
echo "mkdir Orgfiles"
orgfileDir="$HOME/Orgfiles"
mkdir -p "$orgfileDir/journal"
orgfileDir="$HOME/Dropbox/Orgfiles"
if [ ! -d "$orgfileDir" ]; then
echo "mkdir $orgfileDir"
mkdir -p "$orgfileDir/journal"
fi
# touch some files
echo "touch orgfiles"
touch $orgfileDir/master.org
touch $orgfileDir/journal.org
touch $orgfileDir/notes.org
touch $orgfileDir/meeting.org
if [ ! -f "$orgfileDir/master.org" ]; then
echo "touch $orgfileDir/master.org"
touch $orgfileDir/master.org
fi
if [ ! -f "$orgfileDir/journal.org" ]; then
echo "touch $orgfileDir/journal.org"
touch $orgfileDir/journal.org
fi
if [ ! -f "$orgfileDir/notes.org" ]; then
touch $orgfileDir/notes.org
fi
if [ ! -f "$orgfileDir/meeting.org" ]; then
echo "touch $orgfileDir/meeting.org"
touch $orgfileDir/meeting.org
fi
# add some useful aliases
# .. for bash
if [ -f ~/.bashrc ]; then
echo "make bash alias em"
echo "alias em=\"emacs25\"" >> ~/.bashrc
echo "alias emacs=\"emacs25\"" >> ~/.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
. ~/.zshrc
fi
# download config file
if [ -d "$HOME/.emacs.d" ]
then
echo "Backup existing emacs config in $HOME/.emacs.d.back"
mv $HOME/.emacs.d $HOME/.emacs.d.back
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
[![pipeline status](https://gitlab.version.fz-juelich.de/chraibi1/san_emacs/badges/master/pipeline.svg)](https://gitlab.version.fz-juelich.de/chraibi1/san_emacs/commits/master)
# Install
```bash
sh -c "$(wget https://gitlab.version.fz-juelich.de/chraibi1/san_emacs/raw/master/init.sh -O -)"
```
# Notation
- C: Ctrl
- M: Alt
......@@ -39,7 +45,7 @@ Always use `C-g` when you mess up
- `C-k` kill line
- `C-_` undo
- `M-_` redo
- `C-x u` undo-tree
- `C-x u` undo-tree then `q` to choose
- `C-x space` column select
- `C-c ;` comment/uncomment
- `C-s` search forwards
......@@ -57,6 +63,9 @@ Always use `C-g` when you mess up
- `C-xc` exit editor
- `f4` nav-tab
- `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
# Spelling
- `f6` change dictionary
......
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