Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Newer
Older
100755 45 lines (39 sloc) 1.759 kB
15af634 @thierryvolpiatto * emacs-helm.sh: new
thierryvolpiatto authored
1 #!/bin/bash
2
66f39cd get PWD more robustly
Le Wang authored
3
15af634 @thierryvolpiatto * emacs-helm.sh: new
thierryvolpiatto authored
4 ## Copyright (C) 2012 Thierry Volpiatto <thierry.volpiatto@gmail.com>
5 ##
6 ## This program is free software; you can redistribute it and/or modify
7 ## it under the terms of the GNU General Public License as published by
8 ## the Free Software Foundation, either version 3 of the License, or
9 ## (at your option) any later version.
10 ##
11 ## This program is distributed in the hope that it will be useful,
12 ## but WITHOUT ANY WARRANTY; without even the implied warranty of
13 ## MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
14 ## GNU General Public License for more details.
15 ##
16 ## You should have received a copy of the GNU General Public License
17 ## along with this program. If not, see <http://www.gnu.org/licenses/>.
18
19 ## Commentary:
20
21 # Preconfigured Emacs with a basic helm configuration.
22 # Useful to start quickly an emacs -Q with helm.
23 # Run it from this directory.
24
25 TMP="/tmp/helm-cfg.el"
66f39cd get PWD more robustly
Le Wang authored
26 LOADPATH=`dirname $0`
15af634 @thierryvolpiatto * emacs-helm.sh: new
thierryvolpiatto authored
27 cat > $TMP <<EOF
28 (setq default-frame-alist '((vertical-scroll-bars . nil)
29 (tool-bar-lines . 0)
30 (menu-bar-lines . 0)
31 (fullscreen . nil)))
32 (blink-cursor-mode -1)
66f39cd get PWD more robustly
Le Wang authored
33 (add-to-list 'load-path (expand-file-name "$LOADPATH"))
15af634 @thierryvolpiatto * emacs-helm.sh: new
thierryvolpiatto authored
34 (require 'helm-config)
35 (helm-mode 1)
36 (define-key global-map [remap find-file] 'helm-find-files)
37 (define-key global-map [remap occur] 'helm-occur)
38 (define-key global-map [remap list-buffers] 'helm-buffers-list)
39 (define-key lisp-interaction-mode-map [remap indent-for-tab-command] 'helm-lisp-completion-at-point-or-indent)
40 (define-key emacs-lisp-mode-map [remap indent-for-tab-command] 'helm-lisp-completion-at-point-or-indent)
41 (add-hook 'kill-emacs-hook #'(lambda () (delete-file "$TMP")))
42 (cd "~/")
43 EOF
44 emacs -Q -l $TMP
Something went wrong with that request. Please try again.