.emacs-my
changeset 145 b1fdfc950089
parent 144 41a4cd881b9e
child 146 506d2883199f
equal deleted inserted replaced
144:41a4cd881b9e 145:b1fdfc950089
   137 (global-font-lock-mode 1 t)
   137 (global-font-lock-mode 1 t)
   138 
   138 
   139 ;; ----------------------------------------------------------------------
   139 ;; ----------------------------------------------------------------------
   140 ;; highlight selected text
   140 ;; highlight selected text
   141 
   141 
   142 (transient-mark-mode 1)        ; 1/-1, when the mark is active, the region is highlighted.
   142 ;; 1/-1, when the mark is active, the region is highlighted.
       
   143 (transient-mark-mode 1)
   143 (delete-selection-mode 1)               ; 1/-1
   144 (delete-selection-mode 1)               ; 1/-1
   144 
   145 
   145 ;; Order of next item is important.
   146 ;; Order of next item is important.
   146 (setq pc-select-selection-keys-only t)  ; To avoid some key bindings as F6, etc.
   147 (require 'pc-select)
   147 (pc-selection-mode)
   148 ;; To avoid some key bindings as F6, etc. Must set before 'pc-selection-mode' invoke.
       
   149 (setq pc-select-selection-keys-only t)
       
   150 (pc-selection-mode 1)
   148 
   151 
   149 ;; ----------------------------------------------------------------------
   152 ;; ----------------------------------------------------------------------
   150 ;; line
   153 ;; line
   151 (if window-system
   154 (if window-system
   152     (progn
   155     (progn