Browse Source

Merge branch 'master' of github.com:10sr/dotfiles

pull/1/head
10sr 11 years ago
parent
commit
6582052bff
3 changed files with 16 additions and 7 deletions
  1. +2
    -2
      bashrc
  2. +12
    -3
      emacs.el
  3. +2
    -2
      tmux.conf.pl

+ 2
- 2
bashrc View File

@@ -312,7 +312,7 @@ cd(){
if test $# -eq 0 if test $# -eq 0
then then
pushd ~/ >/dev/null pushd ~/ >/dev/null
elif test $1 = -
elif test "$1" = -
then then
local pwd="$PWD" local pwd="$PWD"
command cd "$OLDPWD" command cd "$OLDPWD"
@@ -800,7 +800,7 @@ __my_set_title(){
esac esac
} }
PROMPT_COMMAND="__my_set_title \${USER}@\${HOSTNAME}\:\${PWD}; PROMPT_COMMAND="__my_set_title \${USER}@\${HOSTNAME}\:\${PWD};
__my_set_screen_title \"\$(basename \$PWD)/\""
__my_set_screen_title \$(basename \"\$PWD\")/"


# copied from https://wiki.archlinux.org/index.php/X_resources # copied from https://wiki.archlinux.org/index.php/X_resources
invader(){ invader(){


+ 12
- 3
emacs.el View File

@@ -452,6 +452,13 @@ found, otherwise returns nil."
(set-face-underline-p 'vertical-border (set-face-underline-p 'vertical-border
nil) nil)


(and (fetch-library
"https://raw.github.com/tarao/elisp/master/end-mark.el"
t)
(require 'end-mark nil t)
(global-end-mark-mode))


;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
;; file handling ;; file handling


@@ -668,9 +675,6 @@ found, otherwise returns nil."
(add-to-list 'interpreter-mode-alist (add-to-list 'interpreter-mode-alist
'("python2" . python-mode)) '("python2" . python-mode))


;; (add-hook default-majorg-mode
;; 'my-detect-major-mode-from-shebang)

;; http://fukuyama.co/foreign-regexp ;; http://fukuyama.co/foreign-regexp
'(and (fetch-library '(and (fetch-library
"https://raw.github.com/k-talo/foreign-regexp.el/master/foreign-regexp.el" "https://raw.github.com/k-talo/foreign-regexp.el/master/foreign-regexp.el"
@@ -776,6 +780,11 @@ found, otherwise returns nil."
(setq auto-mode-alist (append '(("PKGBUILD\\'" . pkgbuild-mode)) (setq auto-mode-alist (append '(("PKGBUILD\\'" . pkgbuild-mode))
auto-mode-alist))) auto-mode-alist)))


(add-hook 'html-mode-hook
(lambda ()
(define-key html-mode-map (kbd "C-m")
'reindent-then-newline-and-indent)))

(add-hook 'text-mode-hook (add-hook 'text-mode-hook
(lambda () (lambda ()
(define-key text-mode-map (kbd "C-m") 'newline))) (define-key text-mode-map (kbd "C-m") 'newline)))


+ 2
- 2
tmux.conf.pl View File

@@ -12,7 +12,7 @@ my %color_prefs = (
"darwin-mba.local" => "red,white", "darwin-mba.local" => "red,white",
"newkiwi" => "magenta,white" "newkiwi" => "magenta,white"
); );
my $color_def = "green,white";
my $color_def = "green,black";


sub tmux { sub tmux {
my @command = ($tmux_command, ); my @command = ($tmux_command, );
@@ -57,7 +57,7 @@ sub get_hostname {
my $hostname = $ENV{"HOSTNAME"}; my $hostname = $ENV{"HOSTNAME"};
if (! $hostname) { if (! $hostname) {
$hostname = `hostname`; $hostname = `hostname`;
$hostname =~ s/\n//;
chomp($hostname)
} }
return $hostname; return $hostname;
} }


Loading…
Cancel
Save