(require 'misc)
(global-set-key (kbd "H-y") 'copy-from-above-command)
#+END_SRC
+
+Open a new X Terminal pointing to the directory of the current
+buffers path.
+#+BEGIN_SRC emacs-lisp tangle:yes
+(global-set-key (kbd "H-t") 'jj-open-shell)
+#+END_SRC
**** ace-jump-mode
[2013-04-28 So 11:26]
nil '(("\\<\\(FIX\\(ME\\)?\\|TODO\\|OPTIMIZE\\|HACK\\|REFACTOR\\):"
1 font-lock-warning-face t))))
+;;;###autoload
+(defun jj-open-shell ()
+ "Open a shell in the directory of the current buffer file"
+
+ (interactive)
+ (when buffer-file-name
+ (setenv "ZSTARTDIR" (file-truename buffer-file-name)))
+ (when dired-directory
+ (message dired-directory)
+ (setenv "ZSTARTDIR" (concat (file-truename dired-directory) "/dired")))
+ (start-process "yay" nil "/usr/bin/x-terminal-emulator"))
+
(provide 'ganneff)
;;; ganneff.el ends here