From 57bdb9166577ec76ef629a3202e295431c4795e9 Mon Sep 17 00:00:00 2001 From: Alexander Sulfrian Date: Mon, 7 May 2012 17:25:25 +0200 Subject: emacs: added edit-server for the chrome extension --- emacs | 14 ++++++++++++++ 1 file changed, 14 insertions(+) (limited to 'emacs') diff --git a/emacs b/emacs index 2ac9501..0533131 100644 --- a/emacs +++ b/emacs @@ -405,3 +405,17 @@ If this is set during find-file, flyspell mode gets enabled automaticaly.") deft-directory "~/.org/deft/" deft-text-mode 'org-mode) (global-set-key (kbd "") 'deft)) + +;; edit with emacs +(when (require 'edit-server nil 'noerror) + (setq edit-server-new-frame nil) + (edit-server-start)) + +;; fix raise-frame +(defadvice raise-frame (after make-it-work (&optional frame) activate) + "Work around some bug? in raise-frame/Emacs/GTK/Metacity/something. + Katsumi Yamaoka posted this in + http://article.gmane.org/gmane.emacs.devel:39702" + (call-process + "wmctrl" nil nil nil "-i" "-R" + (frame-parameter (or frame (selected-frame)) 'outer-window-id))) -- cgit v1.2.3