Skip to content
This repository
Browse code

get PWD more robustly

  • Loading branch information...
commit 66f39cd33bc28e6f3874a100b3b0c8c3c3878d0c 1 parent 7f50e8e
Le Wang authored

Showing 1 changed file with 3 additions and 2 deletions. Show diff stats Hide diff stats

  1. +3 2 emacs-helm.sh
5 emacs-helm.sh
... ... @@ -1,5 +1,6 @@
1 1 #!/bin/bash
2 2
  3 +
3 4 ## Copyright (C) 2012 Thierry Volpiatto <thierry.volpiatto@gmail.com>
4 5 ##
5 6 ## This program is free software; you can redistribute it and/or modify
@@ -22,14 +23,14 @@
22 23 # Run it from this directory.
23 24
24 25 TMP="/tmp/helm-cfg.el"
25   -LOADPATH="."
  26 +LOADPATH=`dirname $0`
26 27 cat > $TMP <<EOF
27 28 (setq default-frame-alist '((vertical-scroll-bars . nil)
28 29 (tool-bar-lines . 0)
29 30 (menu-bar-lines . 0)
30 31 (fullscreen . nil)))
31 32 (blink-cursor-mode -1)
32   -(add-to-list 'load-path "$LOADPATH")
  33 +(add-to-list 'load-path (expand-file-name "$LOADPATH"))
33 34 (require 'helm-config)
34 35 (helm-mode 1)
35 36 (define-key global-map [remap find-file] 'helm-find-files)

0 comments on commit 66f39cd

Please sign in to comment.
Something went wrong with that request. Please try again.