我的简单的emacs配置文件


;; Added by Package.el.  This must come before configurations of
;; installed packages.  Don‘t delete this line.  If you don‘t want it,
;; just comment it out by adding a semicolon to the start of the line.
;; You may delete these explanatory comments.
(package-initialize)

(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.
 ‘(custom-enabled-themes (quote (misterioso)))
 ‘(custom-safe-themes
   (quote
    ("6ee6f99dc6219b65f67e04149c79ea316ca4bcd769a9e904030d38908fd7ccf9" "4aee8551b53a43a883cb0b7f3255d6859d766b6c5e14bcb01bed572fcbef4328" "4cf3221feff536e2b3385209e9b9dc4c2e0818a69a1cdb4b522756bcdf4e00a4" default)))
 ‘(inhibit-startup-screen t)
 ‘(package-selected-packages
   (quote
    (multi-term w3m cnfonts window-numbering darkokai-theme color-theme-sanityinc-solarized)))
 ‘(show-paren-mode t)
 ‘(tool-bar-mode nil))
(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 "Monaco" :foundry "unknown" :slant normal :weight normal :height 120 :width normal)))))

(tool-bar-mode 0)
(menu-bar-mode 0)
(scroll-bar-mode 0)
(show-paren-mode t)
(global-linum-mode 1)
(window-numbering-mode t)
(set-frame-parameter (selected-frame) ‘alpha (list 95 95))
(add-to-list ‘default-frame-alist (cons ‘alpha (list 95 95)))
(add-to-list ‘custom-theme-load-path "~/.emacs.d/themes/")
;;(setq molokai-theme-kit t)
;;(load-theme ‘monokai t)
;;(setq sanityinc-solarized-dark-theme-kit t)
(load-theme ‘sanityinc-solarized-dark)
;;(load-theme ‘darkokai)
(setq-default cursor-type ‘blink)

;;(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 (:inherit nil :stipple nil :background "#242634" :foreground "#F8F8F2")))))
(setq x-select-enable-clipboard-manager nil)
(put ‘downcase-region ‘disabled nil)
(setq c-default-style
      ‘((java-mode . "java")(other . "awk")))
;;;windowmove-mode
(when (fboundp ‘windmove-default-keybindings)
  (windmove-default-keybindings)
  (global-set-key (kbd "C-c b")  ‘windmove-left)
  (global-set-key (kbd "C-c f") ‘windmove-right)
  (global-set-key (kbd "C-c p")    ‘windmove-up)
  (global-set-key (kbd "C-c n") ‘windmove-down))

;;(set-frame-width (selected-frame) 100)
;;(set-frame-height (selected-frame) 47)

;; 把C-j绑定到到达指定行上
(global-set-key (kbd "C-x C-j") ‘goto-line) 

(require ‘package)
(add-to-list ‘package-archives
             ‘("melpa" . "http://melpa.org/packages/"))
(package-initialize)

;;(set-default-font "Monaco-14")  

(global-set-key (kbd "C-x t") ‘multi-term)

(display-time-mode 1) ;; 常显
;;(setq display-time-24hr-format t) ;;格式
(setq display-time-day-and-date t) ;;显示时间、星期、日期

darkai, monokai. sanityinc-solarized-dark主题请到emacs官方扩展管理器上下载。(M-x package-list-packages)

原文地址:https://www.cnblogs.com/syscon/p/8543984.html

时间: 2024-10-21 03:55:06

我的简单的emacs配置文件的相关文章

linux下emacs配置文件

1:安装.在ubuntu下使用命令 sudo apt-get install emacs,即可,我使用的是ubuntu的10.04的版本,在里面使用了据说是163的2个源. 1.1:如何更新快速的源,在终端下输入:sudo gedit /etc/apt/sources.list 在里面添加这2个地址,我测试过速度相当的快. deb http://ubuntu.cn99.com/ubuntu/ karmic main restricted universe multiverse          

emacs配置文件的基础知识 (转载)

转自:http://blog.csdn.net/schumyxp/article/details/2278268 emacs的配置文件,叫作.emacs,是个隐藏文件,存在于当前用户的根目录下面,也就是~/.emacs emacs的配置文件采用了elisp作为配置文件的语言,来源于强大的lisp语言.下面我简单说一点emacs配置文件怎么写.虽然内容不多,也很肤浅,但是知道了这些,至少在编写自己的配置文件的时候,不会那么无序了. 在配置文件里面,引号(;)开头表示注释,比如下面这行; this

emacs 配置文件

emacs 配置文件 [2016/05/20] ;; 把 .emacs.d 目錄加入到 load-path ;; 這樣的話本來需要放到 /usr/share/emacs/site-lisp/ 的東西  ;; 就只需要放到 .emacs.d 裏面  (add-to-list 'load-path "~/.emacs.d/")  ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;  ;;

转来的emacs配置文件,自动安装插件

网上转来的emacs配置文件,便于自动安装插件,收藏起来 http://www.gogae.org/post-7/ EMACS是一个伪装成代码编辑器的操作系统. EMACS是一个非常强大的代码编辑器,其扩展能力和插件数量几乎没有任可一个编辑器可以与之相比.她被许多黑客称之为神的编辑器,可想而知这有多受人追捧了.但正因为她的强大而导致了学习曲线陡峭,让大部份想要学习的朋友望而却步.随着Emacs24版本发布,配置成一个顺手好用的编辑器,只需要一个配置文件即可(不像以前要到处去找插件).下面是我写好

Linux系统(Ubuntu/Debian/RedHat/CentOS)超级简单的samba配置文件smb.conf

1.超简单的smb.conf 该配置文件对Ubuntu和CentOS都好用. #============== Global Settings ============== [global] ## Browsing/Identification ### workgroup = mshome server string = samba security = share wins support = no guest account = wslu #============== Share Defin

个人的Emacs配置文件

我的Emacs版本:GNU Emacs 23.1.1 (x86_64-redhat-linux-gnu, GTK+ Version 2.18.9) 1:下载http://ftp.twaren.net/Unix/NonGNU/color-theme/color-theme-6.6.0.tar.gz  然后自己解压 2:把color-theme-6.6.0.tar.gz解压后的 color-theme.el和 theme文件夹 复制到 ~/.emacs.d文件夹内(如果~/.emacs.d文件夹不存

设计模式学习之简单工厂+反射+配置文件

3.用反射+配置文件的方法重新实现大话设计模式课本上15章15.7的例题 问题分析:相比抽象工厂,用DataAccess类代替了工厂接口以及工厂类,再加上使用反射+配置文件的方式,可以做到不对编译好的程序作出改变就能修改数据库种类,客户端可以只是用DateAccess进行数据库访问实例的创建,达到了解耦的目的. UML图: package com.cmc; //用户数据类 public class User { private int id; private String name; publi

Emacs配置文件

;;tab and space;;when true,emacs use mixture of tab and space to archieve(setq-default indent-tabs-mode nil);;control length used to offset.(setq-default c-basic-offset 4);;control how emacs explain TAB(setq-default tab-width 4) ;;setup line number(g

update:我的Emacs配置文件

;;设置字体用的  防止中文变成无法识别的框框 (set-default-font "Consolas-11") (set-fontset-font "fontset-default" 'gb18030' ("微软雅黑" . "unicode-bmp")) ;;设置Home路径 (setq default-directory "d:/code/" ) ;;启动窗口大小 (setq default-frame