X-Git-Url: http://47.100.26.94:8080/?a=blobdiff_plain;f=emacs.d%2Fconfig.org;h=ef4ca584757235419ec4e507e4eba21bdfec4426;hb=3e36533da17cb407d735448b457f562318ed2406;hp=cabe148735461b609a88c864dee42c0e455d9b8f;hpb=76851aa71ae8130ac912be2cbc143ec12a1633c8;p=dotfiles.git diff --git a/emacs.d/config.org b/emacs.d/config.org index cabe148..ef4ca58 100644 --- a/emacs.d/config.org +++ b/emacs.d/config.org @@ -252,8 +252,8 @@ Fix the font alignment issue when both Chinese and English hybird in org-mode ta ;; Setup font size based on emacs-font-size-pair (set-font emacs-english-font emacs-cjk-font '(13 . 16)) - (global-set-key (kbd "s-=") 'increase-emacs-font-size) - (global-set-key (kbd "s--") 'decrease-emacs-font-size) + ;; (global-set-key (kbd "s-=") 'increase-emacs-font-size) + ;; (global-set-key (kbd "s--") 'decrease-emacs-font-size) #+END_SRC @@ -721,14 +721,8 @@ Always indents header, and hide header leading starts so that no need type =#+ST (setq org-use-speed-commands t) (setq org-completion-use-ido t) (setq org-startup-with-inline-images t) - ;; (setq org-emphasis-regexp-components - ;; ;; markup 记号前后允许中文 - ;; (list (concat " \t('\"{" "[:nonascii:]") - ;; (concat "- \t.,:!?;'\")}\\[" "[:nonascii:]") - ;; " \t\r\n,\"'" - ;; "." - ;; 1)) - ) + (setq org-startup-with-latex-preview t) + (setq org-format-latex-options (plist-put org-format-latex-options :scale 1.5))) (org-babel-do-load-languages 'org-babel-load-languages @@ -1690,7 +1684,7 @@ here on Mac, just use "open" commands to pen =.pdf=, =.html= and image files ("\\.\\(?:xcf\\)\\'" "gimp") ("\\.csv\\'" "libreoffice") ("\\.tex\\'" "pdflatex" "latex") - ("\\.\\(?:mp4\\|mkv\\|avi\\|flv\\|ogv\\)\\(?:\\.part\\)?\\'" "mplayer") + ("\\.\\(?:mp4\\|mkv\\|avi\\|rmvb\\|flv\\|ogv\\)\\(?:\\.part\\)?\\'" "mplayer") ("\\.\\(?:mp3\\|flac\\)\\'" "rhythmbox") ("\\.html?\\'" "open") ("\\.dmg\\'" "open") @@ -2752,8 +2746,8 @@ Use =ESC= to exit minibuffer. Also I map =Super-h= the same as =C-g= (global-set-key (kbd "s-p") 'persp-prev) (global-set-key (kbd "s-;") 'persp-switch-last) - ;; (global-set-key (kbd "s-=") 'text-scale-increase) - ;; (global-set-key (kbd "s--") 'text-scale-decrease) + (global-set-key (kbd "s-=") 'text-scale-increase) + (global-set-key (kbd "s--") 'text-scale-decrease) ;; (global-set-key (kbd "s-u") 'undo-tree-visualize) @@ -2875,7 +2869,7 @@ Most use =C-o C-o= to switch buffers; =C-o x, v= to split window; =C-o o= to del ;; Windows undo - redo ("u" (progn (winner-undo) (setq this-command 'winner-undo)) "undo") ("r" (progn (winner-redo) (setq this-command 'winner-redo)) "redo") - + ;; ibuffer, dired, eshell, bookmarks ;; ("C-i" other-window nil :exit t) ("C-b" ido-switch-buffer nil :exit t) @@ -2895,10 +2889,10 @@ Most use =C-o C-o= to switch buffers; =C-o x, v= to split window; =C-o o= to del ;; quit ("q" nil "cancel") ("" nil) - ("C-h" nil nil :exit t) - ("C-j" nil nil :exit t) - ;; ("C-k" nil :exit t) - ("C-l" nil nil :exit t) + ("C-h" windmove-left nil :exit t) + ("C-j" windmove-down nil :exit t) + ("C-k" windmove-up :exit t) + ("C-l" windmove-right nil :exit t) ("C-;" nil nil :exit t) ("n" nil nil :exit t) ("[" nil nil :exit t)