[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[elpa] 237/287: Expanded outlook integration with Emacs org-mode
From: |
Matthew Fidler |
Subject: |
[elpa] 237/287: Expanded outlook integration with Emacs org-mode |
Date: |
Wed, 02 Jul 2014 14:46:18 +0000 |
mlf176f2 pushed a commit to branch externals/ergoemacs-mode
in repository elpa.
commit 84c1287950c2b821d8d663d18dcaa583d51267eb
Author: Matthew L. Fidler <address@hidden>
Date: Thu Jun 26 23:24:56 2014 -0500
Expanded outlook integration with Emacs org-mode
---
ahk-us.ahk | 26 ++++++++++++++++++++++++--
1 files changed, 24 insertions(+), 2 deletions(-)
diff --git a/ahk-us.ahk b/ahk-us.ahk
index 55805e8..8cf935c 100644
--- a/ahk-us.ahk
+++ b/ahk-us.ahk
@@ -4,7 +4,7 @@
;;
;; Copyright © 2009 Milan Santosi
;; Copyright © 2012 Benjamin Hansen
-;; Copyright © 2013 Matthew Fidler
+;; Copyright © 2013, 2014 Matthew Fidler
;; This program is free software: you can redistribute it and/or modify
;; it under the terms of the GNU General Public License as published by
;; the Free Software Foundation, either version 3 of the License, or
@@ -57,6 +57,8 @@ IniRead CurrRAlt, ergoemacs-settings.ini, RAlt, App
IniRead CurrLAlt, ergoemacs-settings.ini, LAlt, App
IniRead CurrRAltLAlt, ergoemacs-settings.ini, RAltLAlt, App
IniRead OutlookSave, ergoemacs-settings.ini, Outlook, Save
+IniRead EmacsClient, ergoemacs-settings.ini, Emacs, EmacsClient
+IniRead OutlookTemplate, ergoemacs-settings.ini, Outlook, Template
LayLst=
VarLst=
CareL = 0
@@ -664,6 +666,19 @@ execute-extended-command:
;; Send to org-outlook if using outlook
If !WinActive("ahk_class Emacs"){
If WinActive("ahk_class rctrl_renwnd32"){
+ If !FileExist(OutlookSave){
+ FileSelectFolder, OutlookSave, ,3, Select Folder to Save Outlook
Emails
+ IniWrite, %OutlookSave%, ergoemacs-settings.ini, Outlook, Save
+ }
+ If !FileExist(EmacsClient){
+ FileSelectFile, EmacsClient, 1, , Emacs Client, Emacs Client
(emacs*.exe)
+ IniWrite, %EmacsClient%, ergoemacs-settings.ini, Emacs,
EmacsClient
+ }
+ If (OutlookTemplate == "ERROR") {
+ InputBox OutlookTemplate, Org-mode capture template for emails
(can't be blank)
+ IniWrite, %OutlookTemplate%, ergoemacs-settings.ini, Outlook,
Template
+
+ }
Clipboard=
SendKey("{Ctrl down}{c}{Ctrl up}")
ClipWait
@@ -688,11 +703,18 @@ execute-extended-command:
Clipboard =
Clipboard := fileName
ClipWait
+ While !WinActive("Save As"){
+ Sleep 100
+ }
SendKey("{Backspace}")
SendInput, %Clipboard%
SendKey("{Enter}")
+ While WinActive("Save As"){
+ Sleep 100
+ }
+ SendKey("{Del}")
fileName := uri_encode(fileName)
- fileName = "%OutlookEmacs%"
org-protocol:/capture:/%OutlookTemplate%%fileName%/%Title%/%EmailBody%
+ fileName = "%EmacsClient%"
org-protocol:/capture:/%OutlookTemplate%/%fileName%/%Title%/%EmailBody%
Run, %fileName%
}
}
- [elpa] 224/287: Make undo-tree the default undo method and installed when ergoemacs-mode is installed. Issue #242, (continued)
- [elpa] 224/287: Make undo-tree the default undo method and installed when ergoemacs-mode is installed. Issue #242, Matthew Fidler, 2014/07/02
- [elpa] 228/287: Add `cua-rect` require so that tests pass, Matthew Fidler, 2014/07/02
- [elpa] 219/287: `ergoemacs-select-text-in-quote' can now deal with escaped quote in string., Matthew Fidler, 2014/07/02
- [elpa] 233/287: Change the default option back, Matthew Fidler, 2014/07/02
- [elpa] 230/287: Fix `ergoemacs-beginning-of-line-or-what` and `ergoemacs-end-of-line-or-what`, Matthew Fidler, 2014/07/02
- [elpa] 227/287: Be more careful of cua--rectangle, Matthew Fidler, 2014/07/02
- [elpa] 232/287: Fix beginning of line function again..., Matthew Fidler, 2014/07/02
- [elpa] 238/287: Fix warnings for cua-clear-rectangle-mark., Matthew Fidler, 2014/07/02
- [elpa] 240/287: Move the fixed bracket moving to the bracket theme component., Matthew Fidler, 2014/07/02
- [elpa] 236/287: add electric-pair-made as an option, Matthew Fidler, 2014/07/02
- [elpa] 237/287: Expanded outlook integration with Emacs org-mode,
Matthew Fidler <=
- [elpa] 234/287: Make comment-search-backward less fragile, Matthew Fidler, 2014/07/02
- [elpa] 235/287: Add the uri encoding function, Matthew Fidler, 2014/07/02
- [elpa] 241/287: Cleanup for select text in quotes, Matthew Fidler, 2014/07/02
- [elpa] 243/287: Make the quote selection consistent., Matthew Fidler, 2014/07/02
- [elpa] 242/287: Fix `ergoemacs-select-text-in-ascii-quote` to work using font-lock, Matthew Fidler, 2014/07/02
- [elpa] 239/287: Allow emacs 24.4 differences for backward-up-list, Matthew Fidler, 2014/07/02
- [elpa] 248/287: Merge pull request #248 from akfoss/master, Matthew Fidler, 2014/07/02
- [elpa] 244/287: Bug fix for cutting folded lines at the end of the line., Matthew Fidler, 2014/07/02
- [elpa] 246/287: Prefer emacs 24.4 backward-up-list, Matthew Fidler, 2014/07/02
- [elpa] 249/287: Support smartparens-mode and auto-indent-mode, Matthew Fidler, 2014/07/02