zoukankan      html  css  js  c++  java
  • Emacs

    My Emacs setting for Groovy

    (put 'dired-find-alternate-file 'disabled nil)
    
    ;;; turn on syntax highlighting
    
    (global-font-lock-mode 1)
    
    ;;; use groovy-mode when file ends in .groovy or has #!/bin/groovy at start
    
    (autoload 'groovy-mode "groovy-mode" "Major mode for editing Groovy code." t)
    
    (add-to-list 'auto-mode-alist '("\.groovy$" . groovy-mode))
    
    (add-to-list 'interpreter-mode-alist '("groovy" . groovy-mode))
    
    ;;; make Groovy mode electric by default.
    
    (add-hook 'groovy-mode-hook
    
              '(lambda ()
    
                 (require 'groovy-electric)
    
                 (groovy-electric-mode)))
    
    (setq x-select-enable-clipboard t) ;this is the varaibale set
    
     (setq interprogram-paste-function 'x-cut-buffer-or-selection-value)
    
    (global-set-key (kbd "C-x <up>")  'windmove-up)
    
    (global-set-key (kbd "C-x <down>") 'windmove-down)
    
    (global-set-key (kbd "C-x <right>") 'windmove-right)
    
    (global-set-key (kbd "C-x <left>") 'windmove-left)
    
    (if (fboundp 'pc-selection-mode) (pc-selection-mode) (require 'pc-select))   
    
      (custom-set-variables  '(pc-selection-mode t nil (pc-select)))
  • 相关阅读:
    return, break, continue
    equals 与 ==
    过滤器
    通过域名区分虚拟主机
    通过端口区分不同虚拟机
    Nginx实现反向代理
    Nginx安装
    poj2387 Til the Cows Come Home(Dijkstra)
    hdoj2544 最短路(Dijkstra || Floyd || SPFA)
    最小生成树
  • 原文地址:https://www.cnblogs.com/cando/p/2325191.html
Copyright © 2011-2022 走看看