• emacs配置


    ;;set color theme
    (add-to-list 'custom-theme-load-path "~/.emacs.d/themes/")
    
    (custom-set-variables
     ;; custom-set-variables was added by Custom.
     ;; If you edit it by hand, you could mess it up, so be careful.
     ;; Your init file should contain only one such instance.
     ;; If there is more than one, they won't work right.
     '(ansi-color-names-vector
       ["#212526" "#ff4b4b" "#b4fa70" "#fce94f" "#729fcf" "#e090d7" "#8cc4ff" "#eeeeec"])
     '(column-number-mode t)
     '(cua-mode t nil (cua-base))
     '(custom-enabled-themes (quote (molokai)))
     '(custom-safe-themes
       (quote
        ("c3c0a3702e1d6c0373a0f6a557788dfd49ec9e66e753fb24493579859c8e95ab" default)))
     '(inhibit-startup-screen t))
    (custom-set-faces
     ;; custom-set-faces was added by Custom.
     ;; If you edit it by hand, you could mess it up, so be careful.
     ;; Your init file should contain only one such instance.
     ;; If there is more than one, they won't work right.
     '(default ((t (:family "Ubuntu Mono" :foundry "DAMA" :slant normal :weight normal :height 143 :width normal)))))
     
    (show-paren-mode t)
    (global-linum-mode t)
    (setq-default cursor-type 'bar)
    (setq-default indent-tabs-mode nil)
    (setq c-basic-offset 4)
    (electric-layout-mode t)
    (electric-pair-mode t)
    (electric-indent-mode t)
    
    (global-set-key [f6] 'shell)
    (add-hook 'c-mode-common-hook 'hs-minor-mode)
    (global-set-key [f9] 'hs-toggle-hiding)
    
    ;;set transparent effect
    (global-set-key [(f11)] 'loop-alpha)
    (setq alpha-list '((100 100) (95 65) (85 55) (75 45) (65 35)))
    (defun loop-alpha ()
      (interactive)
      (let ((h (car alpha-list)))                ;; head value will set to
        ((lambda (a ab)
           (set-frame-parameter (selected-frame) 'alpha (list a ab))
           (add-to-list 'default-frame-alist (cons 'alpha (list a ab)))
           ) (car h) (car (cdr h)))
        (setq alpha-list (cdr (append alpha-list (list h))))
        )
    )
    
    (defadvice kill-ring-save (before slickcopy activate compile)
      (interactive
       (if mark-active (list (region-beginning) (region-end))
         (list (line-beginning-position)
               (line-beginning-position 2)))))
    (defadvice kill-region (before slickcut activate compile)
      (interactive
       (if mark-active (list (region-beginning) (region-end))
         (list (line-beginning-position)
               (line-beginning-position 2)))))
    
    (defun qiang-comment-dwim-line (&optional arg)
      (interactive "*P")
      (comment-normalize-vars)
      (if (and (not (region-active-p)) (not (looking-at "[ 	]*$")))
          (comment-or-uncomment-region (line-beginning-position) (line-end-position))
        (comment-dwim arg)))
    (global-set-key "M-;" 'qiang-comment-dwim-line)
    

    molokai-theme download

  • 相关阅读:
    在ubuntu下关闭笔记本触摸板
    (转载)实用小命令 windows下查看端口占用情况
    (转载)JBoss 4.2.3下部署EJB 3.0碰到的local和remote问题
    Windows下通过xmanager远程桌面控制Linux(转)
    SQL Server 事务日志的问题
    回归
    用友软件工程IT应用研究院
    关于Oracle数据库的死锁(转书摘)
    关于企业级Web2.0的一点想法
    关注Java的开源项目(中文版)
  • 原文地址:https://www.cnblogs.com/tkandi/p/9454891.html
Copyright © 2020-2023  润新知