Skip to content

Commit

Permalink
emacs
Browse files Browse the repository at this point in the history
  • Loading branch information
sjbalaji committed Jun 9, 2014
1 parent d657db5 commit 7dea19d
Show file tree
Hide file tree
Showing 3 changed files with 12 additions and 8 deletions.
2 changes: 1 addition & 1 deletion bash_aliases
@@ -1,7 +1,7 @@
###############################################################################
# .bash aliases
###############################################################################
# Customization BALAJI
# Customization BALAJI
###############################################################################
###############################################################################
# Yum related aliases
Expand Down
8 changes: 6 additions & 2 deletions emacs
Expand Up @@ -47,7 +47,7 @@
(add-to-list 'load-path "/home/balaji/.emacs.d/git-emacs")
(require 'git-emacs)
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
;; highlight the current line
;; highlight the current line
;; Different option for X window vs terminal mode :)
(global-hl-line-mode 1)
(if window-system
Expand Down Expand Up @@ -119,6 +119,11 @@
(global-set-key [f9] 'switch-to-term) ;; Open or switch to a terminal
(global-set-key [f10] 'next-buffer) ;; Switch to next open buffer
;;(global-set-key [f11] "\C-u\M-.")
(global-set-key [backtab] "\C-xo")
(global-set-key (kbd "M-<up>") "\C-x5o")
(global-set-key (kbd "M-<down>") "\C-x5o")
(global-set-key (kbd "C-<up>") "\C-xo")
(global-set-key (kbd "C-<down>") "\C-xo")
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
(defun switch-to-term ()
(interactive)
Expand Down Expand Up @@ -451,7 +456,6 @@
(save-excursion (newline-and-indent))))
(newline arg)
(indent-according-to-mode)))

(global-set-key (kbd "RET") 'autopairs-ret)
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
;; Enable mouse in nw
Expand Down
10 changes: 5 additions & 5 deletions wireless.sh.withColor
@@ -1,12 +1,12 @@
#!/bin/sh

iwconfig eth1 2>&1 | grep -q no\ wireless\ extensions\. && {
iwconfig wlan0 2>&1 | grep -q no\ wireless\ extensions\. && {
echo wired
exit 0
}

essid=`sudo iwconfig eth1 | awk -F '"' '/ESSID/ {print $2}'`
stngth=`sudo iwconfig eth1 | awk -F '=' '/Quality/ {print $2}' | cut -d '/' -f 1`
essid=`sudo iwconfig wlan0 | awk -F '"' '/ESSID/ {print $2}'`
stngth=`sudo iwconfig wlan0 | awk -F '=' '/Quality/ {print $2}' | cut -d '/' -f 1`
bars=`echo "$stngth * 2" | bc`
case $bars in
0) bar="[$(tput setaf 1)$(tput bold)----------$(tput sgr0)]" ;;
Expand All @@ -22,5 +22,5 @@ case $bars in
10) bar="[$(tput setaf 2)$(tput bold)**********$(tput sgr0)]" ;;
*) bar="[$(tput setaf 1)$(tput bold)----!!----$(tput sgr0)]" ;;
esac
echo -ne "${essid}: ${bar}"
exit 0
echo "${essid}: ${bar}"
exit 0

0 comments on commit 7dea19d

Please sign in to comment.