{"id":4141,"date":"2011-12-16T15:53:33","date_gmt":"2011-12-16T07:53:33","guid":{"rendered":"http:\/\/www.yuleshow.com\/?p=4141"},"modified":"2011-12-16T15:53:33","modified_gmt":"2011-12-16T07:53:33","slug":"my-dotemacs-file","status":"publish","type":"post","link":"https:\/\/www.yuleshow.com\/?p=4141","title":{"rendered":"My dotemacs file"},"content":{"rendered":"<p>\u7531\u65bc\u7db2\u7ad9\u7684\u8a2d\u7f6e\u554f\u984c\uff0c\u5f15\u865f\u6703\u8b8a\u6389\uff0c\u6211\u4e5f\u61f6\u5f97\u8abf\u6574\uff0c<a href=\"https:\/\/www.yuleshow.com\/files\/20111219.emacs\" title=\"my dotemacs\" target=\"_blank\" rel=\"noopener\">\u9019\u88e1<\/a>\u662f\u539f\u59cb\u6587\u4ef6<br \/>\n&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;-<br \/>\n(defun other-window-backward ()  ; this is a function to combine on M-up keyset, to active<br \/>\n  &#8220;Back one window&#8221;<br \/>\n  (interactive)<br \/>\n  (other-window -1))<br \/>\n(defun line-to-top ()<br \/>\n  &#8220;Move cursor to top&#8221;<br \/>\n  (interactive)<br \/>\n  (recenter 0)<br \/>\n)<br \/>\n(global-set-key &#8220;M-c&#8221; &#8216;clipboard-kill-ring-save)<br \/>\n(global-set-key &#8220;M-&#8216;&#8221; &#8216;line-to-top)<br \/>\n(global-set-key [M-left] &#8216;previous-buffer)<br \/>\n(global-set-key [M-right] &#8216;next-buffer)<br \/>\n(global-set-key [M-up] &#8216;other-window-backward)<br \/>\n(global-set-key [M-down] &#8216;other-window)<br \/>\n(global-set-key [M-kp-add] &#8216;enlarge-window)<br \/>\n(global-set-key &#8220;M-]&#8221;  &#8216;enlarge-window)<br \/>\n(global-set-key [M-kp-subtract] &#8216;shrink-window)<br \/>\n(global-set-key &#8220;M-[&#8221; &#8216;shrink-window)<br \/>\n(global-set-key &#8220;M-s&#8221; &#8216;save-buffer)<br \/>\n(global-set-key &#8220;M-a&#8221; &#8216;mark-whole-buffer)<br \/>\n(global-set-key [f8] &#8216;menu-bar-mode)<br \/>\n(tool-bar-mode nil)<br \/>\n(menu-bar-mode nil)<br \/>\n(scroll-bar-mode nil)<br \/>\n(setq-default cursor-type &#8216;bar)<br \/>\n(blink-cursor-mode 1)<br \/>\n(auto-image-file-mode t)<br \/>\n(setq browse-url-generic-program (executable-find &#8220;google-chrome&#8221;))<br \/>\n(setq browse-url-browser-function &#8216;browse-url-generic)<br \/>\n(setq frame-title-format &#8220;yuleshow@%b&#8221;)<br \/>\n;; ========= Set colours ==========<br \/>\n;; Set cursor and mouse-pointer colours<br \/>\n(set-cursor-color &#8220;green1&#8221;)<br \/>\n(set-mouse-color &#8220;goldenrod&#8221;)<br \/>\n;; Set region background colour<br \/>\n(set-face-background &#8216;region &#8220;white&#8221;)<br \/>\n;; Set emacs background colour<br \/>\n; (set-background-color &#8220;black&#8221;)<br \/>\n(set-background-color &#8220;#000000002B2B&#8221;)<br \/>\n(set-foreground-color &#8220;green1&#8243;)<br \/>\n; (setq default-frame-alist<br \/>\n;      (append default-frame-alist<br \/>\n;\t      &#8216;((foreground-color.&#8221;green1&#8243;)<br \/>\n;\t\t(background-color.&#8221;black&#8221;)<br \/>\n;\t\t(cursor-color.&#8221;green1&#8243;)<br \/>\n\ud83d\ude09<br \/>\n(add-to-list &#8216;load-path &#8220;~\/.emacs.d\/site-lisp\/wubi&#8221;)<br \/>\n(require &#8216;wubi)<br \/>\n(wubi-load-local-phrases) ; add user&#8217;s Wubi phrases<br \/>\n(register-input-method<br \/>\n &#8220;chinese-wubi&#8221; &#8220;Chinese-GB&#8221; &#8216;quail-use-package<br \/>\n &#8220;WuBi&#8221; &#8220;WuBi&#8221;<br \/>\n &#8220;wubi&#8221;)<br \/>\n(setq default-input-method &#8220;chinese-wubi&#8221;)<br \/>\n(add-to-list &#8216;load-path &#8220;\/usr\/share\/emacs\/site-lisp\/w3m&#8221;)<br \/>\n(require &#8216;w3m-load)<br \/>\n;; (require &#8216;w3m-e21)<br \/>\n;; (provide &#8216;w3m-e23)<br \/>\n(setq w3m-use-favicon nil)<br \/>\n(setq w3m-command-arguments &#8216;(&#8220;-cookie&#8221; &#8220;-F&#8221;))<br \/>\n(setq w3m-use-cookies t)<br \/>\n(setq w3m-home-page &#8220;https:\/\/www.yuleshow.com&#8221;)<br \/>\n(setq w3m-display-inline-image t)<br \/>\n;; (add-to-list \u300eload-path \u300c~\/.emacs.d\/site-lisp\u300d)<br \/>\n;; (require \u300ecygwin-mount)<br \/>\n;; (cygwin-mount-activate)<br \/>\n(setq evernote-enml-formatter-command &#8216;(&#8220;w3m&#8221; &#8220;-dump&#8221; &#8220;-I&#8221; &#8220;UTF8&#8221; &#8220;-O&#8221; &#8220;UTF8&#8221;)) ; option<br \/>\n(add-to-list &#8216;load-path &#8220;~\/.emacs.d\/site-lisp&#8221;)<br \/>\n(add-to-list &#8216;load-path &#8220;~\/.emacs.d\/site-lisp\/emacs-evernote&#8221;)<br \/>\n(require &#8216;evernote-mode)<br \/>\n(global-set-key &#8220;C-cec&#8221; &#8216;evernote-create-note)<br \/>\n(global-set-key &#8220;C-ceo&#8221; &#8216;evernote-open-note)<br \/>\n(global-set-key &#8220;C-ces&#8221; &#8216;evernote-search-notes)<br \/>\n(global-set-key &#8220;C-ceS&#8221; &#8216;evernote-do-saved-search)<br \/>\n(global-set-key &#8220;C-cew&#8221; &#8216;evernote-write-note)<br \/>\n(global-set-key &#8220;C-cep&#8221; &#8216;evernote-post-region)<br \/>\n(global-set-key &#8220;C-ceb&#8221; &#8216;evernote-browser)<br \/>\n(require &#8216;jabber-autoloads)<br \/>\n(setq jabber-account-list &#8216;(<br \/>\n\t\t\t    (&#8220;yuleshow@gmail.com&#8221;<br \/>\n;;\t\t\t      (:password.\u300d*************\u300d)<br \/>\n\t\t\t     (:network-server . &#8220;talk.google.com&#8221;)<br \/>\n\t\t\t     (:port . 443)<br \/>\n\t\t\t     (:connection-type . ssl))<br \/>\n                            ))<br \/>\n(custom-set-variables<br \/>\n  ;; custom-set-variables was added by Custom.<br \/>\n  ;; If you edit it by hand, you could mess it up, so be careful.<br \/>\n  ;; Your init file should contain only one such instance.<br \/>\n  ;; If there is more than one, they won&#8217;t work right.<br \/>\n &#8216;(font-use-system-font t)<br \/>\n &#8216;(tool-bar-mode nil)<br \/>\n &#8216;(weblogger-config-alist (quote ((&#8220;default&#8221; &#8220;https:\/\/www.yuleshow.com\/wordpress\/xmlrpc.php&#8221; &#8220;Yule Show&#8221; &#8220;&#8221; &#8220;1&#8221;)))))<br \/>\n(custom-set-faces<br \/>\n  ;; custom-set-faces was added by Custom.<br \/>\n  ;; If you edit it by hand, you could mess it up, so be careful.<br \/>\n  ;; Your init file should contain only one such instance.<br \/>\n  ;; If there is more than one, they won&#8217;t work right.<br \/>\n &#8216;(default ((t (:inherit nil :stipple nil :background &#8220;black&#8221; :foreground &#8220;green1&#8221; :inverse-video nil :box nil :strike-through nil :overline nil :underline nil :slant normal :weight light :height 143 :width normal :foundry &#8220;unknown&#8221; :family &#8220;Ubuntu&#8221;)))))<br \/>\n(require &#8216;weblogger)<br \/>\n;; Twittering mode<br \/>\n;; Download https:\/\/raw.github.com\/xwl\/twittering-mode\/f5c3ace6925f9f69340d9cbfccce08a7689cfe46\/twittering-mode.el<br \/>\n(add-to-list &#8216;load-path &#8220;~\/.emacs.d\/site-lisp\/twittering-mode&#8221;)<br \/>\n(require &#8216;twittering-mode)<br \/>\n(setq twittering-use-ssl nil<br \/>\ntwittering-oauth-use-ssl nil)<br \/>\n(setq twittering-icon-mode 1)<br \/>\n(setq twittering-enabled-services &#8216;(sina))<br \/>\n(setq twittering-accounts &#8216;((sina (username &#8220;yuleshow@mac.com&#8221;)<br \/>\n\t\t\t\t  (auth oauth))))<br \/>\n;; edit-server mode<br \/>\n;; Download https:\/\/github.com\/stsquad\/emacs_chrome\/blob\/master\/servers\/edit-server.el<br \/>\n(require &#8216;edit-server)<br \/>\n(edit-server-start)<\/p>\n","protected":false},"excerpt":{"rendered":"<p>\u7531\u65bc\u7db2\u7ad9\u7684\u8a2d\u7f6e\u554f\u984c\uff0c\u5f15\u865f\u6703\u8b8a\u6389\uff0c\u6211\u4e5f\u61f6\u5f97\u8abf\u6574\uff0c\u9019\u88e1\u662f\u539f\u59cb\u6587\u4ef6 &#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;- (defun other-window-backward () ; this is a function to combine on M-up keyset, to active &#8220;Back one window&#8221; (interactive) (other-window -1)) (defun line-to-top () &#8220;Move cursor to top&#8221; (interactive) (recenter 0) ) (global-set-key &#8220;M-c&#8221; &#8216;clipboard-kill-ring-save) (global-set-key &#8220;M-&#8216;&#8221; &#8216;line-to-top) (global-set-key [M-left] &#8216;previous-buffer) (global-set-key [M-right] &#8216;next-buffer) (global-set-key [M-up] &#8216;other-window-backward) (global-set-key [M-down] &#8216;other-window) (global-set-key [M-kp-add] &#8216;enlarge-window) [&hellip;]<\/p>\n","protected":false},"author":2,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"_jetpack_memberships_contains_paid_content":false,"footnotes":""},"categories":[34],"tags":[],"class_list":["post-4141","post","type-post","status-publish","format-standard","hentry","category-emacs"],"jetpack_featured_media_url":"","jetpack_sharing_enabled":true,"_links":{"self":[{"href":"https:\/\/www.yuleshow.com\/index.php?rest_route=\/wp\/v2\/posts\/4141","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.yuleshow.com\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.yuleshow.com\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.yuleshow.com\/index.php?rest_route=\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"https:\/\/www.yuleshow.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=4141"}],"version-history":[{"count":0,"href":"https:\/\/www.yuleshow.com\/index.php?rest_route=\/wp\/v2\/posts\/4141\/revisions"}],"wp:attachment":[{"href":"https:\/\/www.yuleshow.com\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=4141"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.yuleshow.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=4141"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.yuleshow.com\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=4141"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}