Permalink
Browse files

Add 'genehack/unicode' defun

  • Loading branch information...
1 parent 6039a44 commit fe02a485c40e60175e551025dc3b4f0940ee6768 @genehack committed Jan 9, 2013
Showing with 7 additions and 0 deletions.
  1. +1 −0 etc/keys.el
  2. +6 −0 etc/misc.el
View
@@ -15,6 +15,7 @@
(global-set-key (kbd "C-c C-j") 'projectile-jump-to-project-file)
(global-set-key (kbd "C-c C-o") 'projectile-multi-occur)
(global-set-key (kbd "C-c C-t") 'genehack/strip-whitespace-and-indent)
+(global-set-key (kbd "C-c C-u") 'genehack/unicode)
(global-set-key (kbd "C-c C-v") 'genehack/split-vertically-or-delete-other-windows)
(global-set-key (kbd "C-c C-x") 'maximize-frame)
(global-set-key (kbd "C-c M-x") 'execute-extended-command)
View
@@ -370,6 +370,12 @@
((equal last-command genehack/bol-command-name) (move-beginning-of-line nil))
(t (back-to-indentation)))))
+;;; UNICODE
+(defun genehack/unicode (char)
+ "Insert Unicode character at point"
+ (interactive "MCharacter name? ")
+ (insert (shell-command-to-string (format "u %s" char))))
+
;;; URL ENCODING
;; based on http://twitter.com/#!/OvidPerl/status/28076709865586688
(defun genehack/unescape_uri (b e)

0 comments on commit fe02a48

Please sign in to comment.