emacs 쓰시는분 .emacs파일 좀 구경시켜주세요.

작은상자의 이미지

그리고 쓰시는 el파일도 가르쳐주세요~

줄번호 넣기
erc
등 시도를 해봤지만 제다 실패를 햇네요.

;; minicube' emacs setting 2006

;; theme
(setq load-path (cons (expand-file-name "~/.emacs.d/") load-path))
(require 'etheme)
(require 'setnu)
(etheme-apply-theme "morning")

;; Font Setting
(set-face-font
'default
'("Gulim")
'prepend)
(set-face-font
'default
'("Gulim")
'global '(mule-fonts) 'prepend)

;; C 모드나 perl 모드시 setnu-mode 즉 좌측에 줄번호가 나오게 하는 모드를 켬.
(add-hook 'c-mode-hook 'setnu-mode)
(add-hook 'html-mode-hook 'setnu-mode)
(add-hook 'cperl-mode-hook 'setnu-mode)

;; beep off
(setq visible-bell t)

;; windows size
(set-frame-width (selected-frame) 100)
(set-frame-height (selected-frame) 50)

(setq tool-bar-mode nil)

;; hangul
; 아래 한줄이면 충분한 듯 합니다.
(set-language-environment "Korean")

;(set-w32-system-coding-system 'euc-kr)
;(setq-default file-name-coding-system 'euc-kr)
;(setq-default buffer-coding-system 'euc-kr)
;(set-selection-coding-system 'euc-kr)
; mail
;(setq sendmail-coding-system 'euc-kr)

;; syntax highlighting
(global-font-lock-mode t)
; max highlighting
(setq font-lock-maximum-decoration t)

; highlight marked region
(transient-mark-mode t)

; backup
(setq make-backup-files nil)

; column number
(column-number-mode t)

이렇게 해두었는데 먼가 에러가 뜨네요 =_=

kane의 이미지

; 예전에 설정해두고 거의 그대로 쓰고 있어서 뭐가 뭔지 모르겠는 설정도 좀 있군요. :(

;
; kane's emacs file

;;; customize default setting
(custom-set-variables
;; custom-set-variables was added by Custom -- don't edit or cut/paste it!
;; Your init file should contain only one such instance.
'(case-fold-search t)
'(current-language-environment "Korean")
'(default-input-method "korean-hangul")
'(global-font-lock-mode t nil (font-lock))
'(gnus-default-charset (quote euc-kr))
'(keyboard-coding-system (quote korean-iso-8bit))
'(kill-whole-line t)
'(show-paren-mode t nil (paren))
'(transient-mark-mode t)
'(windmove-wrap-around t))

(custom-set-faces
;; custom-set-faces was added by Custom -- don't edit or cut/paste it!
;; Your init file should contain only one such instance.
)

; 추가 모드를 위한 설정입니다.
; 차례로 cweb, ruby, nML

;;; load library
;; (load "complete") ; for powerful completion
(setq load-path (cons "~/.emacs.d/" load-path))
(load "cweb") ; for cweb
(load "ruby-mode") ; for ruby
(setq auto-mode-alist
(append '(("\\.n[iylp]?" . n-mode))
auto-mode-alist))
(autoload 'n-mode "n" "Major mode for editing N code." t)
(require 'n-font)

;;; Global key binding
;
; M-prior 가 scroll-other-window-down 으로 지정되어 있었다.
; 그런데 prior 가 어떤 키에 해당하는 지를 알 수 없어서
; M-V = Alt-Shift-v 로 rebinding 하였다.
(global-set-key "\M-V" 'scroll-other-window-down)

; 전에는 키 맵핑을 완전히 새로해서 저만의 키 설정을 사용하곤 했는데,
; 다른 사람들과의 호환성 문제도 있고 해서
; 이제는 사용하지 않습니다.

;;; loading customized global key binding file
;
; (setq load-path (cons "" load-path)) ; add load-path
; and (load "file")
;(setq load-path (cons "~/.emacs.d/keymap" load-path))

;(load "global.key") ; global key
;(load "move.key") ; move key (like vi)
;(load "edit.key") ; edit key
;(load "buffer.key") ; buffer key (\C-b)
;(load "delete.key") ; delete key (\C-d)
;(load "file.key") ; file key (\C-f)
;(load "window.key") ; window key (\C-o)
;(load "help.key") ; help key (\C-/)
;(load "region.key") ; region key (\C-')

;;; Info mode
;
; M-TAB 이 Info-prev-reference 로 지정되어 있어서 사용할 수가 없었다.
; (M-TAB = Alt-TAB 은 윈도우에서 창 사이의 이동에 사용되므로)
; 따라서 Shift-TAB 을 Info-prev-reference 로 지정하였다.
; (Shift 는 단독으로 prefix 로서 사용될 수 없는 것 같다.
; 따라서 Shift-TAB 에 해당하는 M-[z 값으로 대신하였다.
; 이 값은 describe-key 을 통해서 알아내었다.
(add-hook 'Info-mode-hook
'(lambda ()
(define-key Info-mode-map "\M-[z" 'Info-prev-reference)))

; 이멕스 내에서 쓸 수 있는 프로그램을 위한 설정입니다.
; 맨 끝의 w3는 잘 되는 것 같지는 않더군요. ㅠㅜ
; 요새는 쓸 일이 없어서 신경쓰지는 않습니다만...

;;; newsticker (RSS reader for emacs)
;
;(add-to-list 'load-path "/path/to/newsticker/")
(autoload 'newsticker-start "newsticker" "Emacs Newsticker" t)
(add-hook 'newsticker-mode-hook 'imenu-add-menubar-index)
;;; Emacs/W3 Configuration
(setq load-path (cons "/home3/kane/share/emacs/site-lisp" load-path))
(condition-case () (require 'w3-auto "w3-auto") (error nil))
(autoload 'w3-preview-this-buffer "w3" "WWW Previewer" t)

; 좀 지저분하죠? ㅎ

; p.s: http://dotfiles.com/ 에 가시면 다른 사람들의 dot 파일도 구경하실 수 있습니다. :)

cinsk의 이미지

제 .emacs는 여기에 있습니다.

윗 부분에 "(view)"라고 된 링크를 클릭하시면 됩니다.
--
C FAQ: http://www.eskimo.com/~scs/C-faq/top.html
Korean Ver: http://www.cinsk.org/cfaqs/

ptmono의 이미지

;(set-language-environment "Korean")
;(setq-default coding-system 'euc-kr)
;(setq-default file-name-coding-system 'euc-kr)
;(setq file-coding-system 'euc-kr)
;(setq display-coding-system 'euc-kr)
;(setq-default buffer-coding-system 'utf-8)
;(setq sendmail-coding-system 'euc-kr)
;(setq keyboard-coding-system 'euc-kr)
;(setq terminal-coding-system 'euc-kr)
;(setq menu-coding-system 'euc-kr) ; make WITH_MENUBAR_FONTSET=yes

;; use iiimf
;(setq default-input-method 'iiim-emacs)
;(setq iiimcf-server-control-hostlist '("unix/:9010"))

(global-font-lock-mode t)

;------------------------------------------------------------
;; for colorful ls in the shell-mode
;------------------------------------------------------------
(ansi-color-for-comint-mode-on)

;------------------------------------------------------------
;; for double-space to one-space between sentences
;------------------------------------------------------------
;(setq sentence-end-double-space nil)

;load el or ecl folder
(setq load-path (cons (expand-file-name "~/.emacs.d/") load-path))

;; to use outline mode, section scrolling
;(global-outline-minor-mode t) ;;이건 안되네..
;(setq-default outline-mode t)
;(autoload 'outline-mode' "outline-mode" "outline-mode" t)
;; to use highlighting by matching
;(global-hi-lock-mode t) ;;이것도 안돼네
;(setq-default hi-lock-mode t)

;------------------------------------------------------------
;; load w3m
;------------------------------------------------------------
(require 'w3m-load)

;------------------------------------------------------------
;;tramp
;------------------------------------------------------------
(require 'tramp)
(setq tramp-default-method "scp")

(require 'cl)
(when enable-multibyte-characters
(set-language-environment "Korean")

(setq-default file-name-coding-system 'utf-8)
;; comment out if you use 3 bulsik
;; (setq default-korean-keyboard "3")
;; (setq default-input-method "korean-hangul3")
;; (setq input-method-verbose-flag nil
;; input-method-highlight-flag nil)
;;;; give highest priority to euc-kr
(prefer-coding-system 'utf-8)
(set-default-coding-systems 'utf-8)

(add-hook 'quail-inactivate-hook 'delete-quail-completions)
(defun delete-quail-completions ()
(when (get-buffer "*Quail Completions*")
(kill-buffer "*Quail Completions*")))
;(set-selection-coding-system 'euc-kr)
(set-selection-coding-system 'utf-8)

;;(unless window-system
;;(menu-bar-mode -1)
;;(set-keyboard-coding-system 'nil)
;;(set-terminal-coding-system 'euc-kr))

;; Hangul Mail setting
(setq-default sendmail-coding-system 'euc-kr)

;; For use of `emacs -nw' in Korean terminal emulator
(if (and (null window-system) (null noninteractive))
(progn
(set-keyboard-coding-system 'utf-8)
(set-terminal-coding-system 'utf-8)))

;; hangul printing for ps-mule.el
(setq-default ps-multibyte-buffer 'non-latin-printer)

;; turn off C-h during input
;;(eval-after-load "quail"
;; '(progn
;; (define-key quail-translation-keymap "\C-h"
;; 'quail-delete-last-char)
;;(define-key quail-translation-keymap "\C-?"
;; 'quail-translation-help)
;; (define-key quail-translation-keymap "\C-?"
;; 'quail-delete-last-char)
;; ))

;; The default coding system of the dired buffer is utf-8.
(add-hook 'dired-before-readin-hook
(lambda ()
(set (make-local-variable 'coding-system-for-read) 'utf-8)))
)

(defun unicode-shell ()
"Execute the shell buffer in UTF-8 encoding.
Note that you'll need to set the environment variable LANG and othersd
appropriately."
(interactive)
(let ((coding-system-for-read 'utf-8)
(coding-system-for-write 'utf-8)
(coding-system-require-warning t))
(call-interactively 'shell)))

(transient-mark-mode 1)

;------------------------------------------------------------
;; for bhl-mode
;------------------------------------------------------------

;(autoload 'bhl-mode "bhl" "BHL Mode" t)
;(add-to-list 'auto-mode-alist '("\\.bhl$" . bhl-mode))

;-------------------------------------------------------------
;이부분은 한글 printing을 부한부분이다.
;http://personal-pages.lvc.edu/~lyons/computer_howto/korean_emacs.txt에서 나온 것이며 ~/note/emacs의 한글 printing을 참고하기 바란다.
;------------------------------------------------------------
;; for emacs typing and printing korean
;; Korean character typing and printing
(load "ps-print")
(load "ps-mule")
(load "ps-bdf")
(load "/usr/share/emacs/21.4/leim/quail/hangul.el")
(setq ps-multibyte-buffer 'bdf-font-except-latin)

;; unicode character insertion
;; (needed for diacritical mark called "breve" used in
;; McCune-Reischauer romanization)
(defun unicode-insert (char)
"Read a unicode code point and insert said character.
Input uses `read-quoted-char-radix'. If you want to copy
the values from the Unicode charts, you should set it to 16."
(interactive (list (read-quoted-char "Char: ")))
(ucs-insert char))
(setq read-quoted-char-radix 16)

;-----------------------------------------------------------
;; no emacs start-up message
;-----------------------------------------------------------
(setq inhibit-startup-message t)

;-----------------------------------------------------------
;; for muse, info page에서 복사해 온 것이다. 밑의 planner와 remember가 함께 쓰인다.
;; muse+planner+remember의 사용에 대한 조언은 muse.muse page를 참고하기 바란다.
;-----------------------------------------------------------
(add-to-list 'load-path "/home/ptmono/.emacs.d/muse/")

(require 'muse-mode) ; load authoring mode

(require 'muse-html) ; load publishing styles I use
(require 'muse-latex)
(require 'muse-texinfo)
(require 'muse-docbook)
(require 'muse-colors)
(require 'muse-journal)
; (require 'muse-wiki) ; 이부분은 notes#latex와 같이 notes라는 project의 latex page를 링크를 가능하게 하기 위해서 필요한 부분이다. 0605171221 don't use.

; (setq muse-file-extension nil
; muse-mode-auto-p t)

;(require 'muse-project) ; for muse project
; (setq muse-project-alist
; '(("wikiplanner"
; ("~/Plans" ;; where your Planner pages are located
; :default "TaskPool" ;; use value of `planner-default-page'
; :major-mode planner-mode
;
; :visit-link planner-visit-link)

;; This next part is for specifying where Planner pages
;; should be published and what Muse publishing style to
;; use. In this example, we will use the XHTML publishing
;; style.

; (:base "planner-xhtml"
;; value of `planner-publishing-directory'
; :path "~/public_html/plans"))))

(setq muse-project-alist
'(("articles"
("~/articles" :default "index")
(:base "html" :path "~/public_html/articles"))

("works"
("~/works" :default "index")
(:base "html" :path "~/public_html/works"))

; ("notes"
; ("~/notes" :defaut "index")
; (:base "html" :path "~/public_html/notes"))

("Emacs"
("~/notes/emacs" :defaut "index")
(:base "html" :path "~/public_html/emacs"))

("plans"
("~/plans"
:default "TaskPool"
:major-mode planner-mode
:visit-link planner-visit-link)
(:base "planner-xhtml"
:path "~/public_html/plans"))))

;------------------------------------------------------------
;; for planner
;------------------------------------------------------------

(add-to-list 'load-path "/home/ptmono/.emacs.d/planner/")
(require 'planner)
(require 'planner-publish)
(load-library "planner-cyclic")

(setq planner-project "plans")

(global-set-key (kbd "") 'planner-create-task-from-buffer)
(global-set-key (kbd "") 'remember)
(global-set-key [?\C-\S-y] 'clipboard-yank)

;------------------------------------------------------------
;; for remember, load-path is ~/.emacs.d/
;; 밑의 require는 하나만 필요 했다. remember는 ~/.notes 파일에 기록되었고, remember-planner 는 ~/Plans/ 의 파일들에 기록되었다. 날짜를 넣어주면 그 날짜의 2006.03.28.muse에 기록되고 TaskPoll을 입력하여주면 그날의 2006.03.28.muse와 TaskPool.muse 둘다에 입력되었다.
;------------------------------------------------------------

(add-to-list 'load-path "/home/ptmono/.emacs.d/remember/")
(require 'remember)
(require 'remember-planner)
(setq remember-handler-functions '(remember-planner-append))
(setq remember-annotation-functions planner-annotation-functions)

;------------------------------------------------------------
;; for calendar/diary
;------------------------------------------------------------

(setq mark-diary-entries-in-calendar t)

;------------------------------------------------------------
;; for dicmode : dictionary
;------------------------------------------------------------
(autoload 'dictionary-search "dictionary"
"Ask for a word and search it in all dictionaries" t)
(autoload 'dictionary-match-words "dictionary"
"Ask for a word and search all matching words in the dictionaries" t)
(autoload 'dictionary-lookup-definition "dictionary"
"Unconditionally lookup the word at point." t)
(autoload 'dictionary "dictionary"
"Create a new dictionary buffer" t)
(autoload 'dictionary-mouse-popup-matching-words "dictionary"
"Display entries matching the word at the cursor" t)
(autoload 'dictionary-popup-matching-words "dictionary"
"Display entries matching the word at the point" t)
(autoload 'dictionary-tooltip-mode "dictionary"
"Display tooltips for the current word" t)
(unless (boundp 'running-xemacs)
(autoload 'global-dictionary-tooltip-mode "dictionary"
"Enable/disable dictionary-tooltip-mode for all buffers" t))

;These lines are also stored in a file dictionary-init.el which can be included in your .emacs
;file by using the following command.

(load "dictionary-init")
;; key bindings
(global-set-key "\C-cs" 'dictionary-search)
(global-set-key "\C-cm" 'dictionary-match-words)

;(plan)
(planner-update-wiki-project)

;------------------------------------------------------------
;; for planner-browser : http://www003.upp.so-net.ne.jp/quasi/red/planner-browser/planner-browser-en.html
;------------------------------------------------------------
;(load "planner-browser")
;;; planner-browser needs emacs-wiki. But muse is used.

;------------------------------------------------------------
;; for choronometer mode : 이건 알람 기능을 하는 el이다.
;; * a - set alarm
;; * u - unset alarm
;; * p - toggle pause
;; * r - restart
;; * h - hide
;; * q - exit
;; * ? - help
;------------------------------------------------------------

;(require 'chronometer)

;------------------------------------------------------------
;; for ell.el all elisp list를 emacs 상에서 뽑을 수 있을까하여 사용해 보았지만 잘되지 않았다. elib는 ell.el을 사용시 필요한 lib이다.
;------------------------------------------------------------
;(add-to-list 'load-path "/usr/local/share/emacs/site-lisp/elib/")
;(require 'ell)

;------------------------------------------------------------
;; 나만의 함수를 위한 부분이다.
;------------------------------------------------------------
(defun dalsoo-insert-time ()
"inserting current time e.g 060410:0901"
(interactive)
(insert (format-time-string "%y%m%d%H%M" (current-time))))

(global-set-key (kbd "") 'dalsoo-insert-time)

;------------------------------------------------------------
;; 이부분은 fixed familly에서 굵은 글씨가 설정되지 않아서 bold를 위한 설정이다.
;------------------------------------------------------------
(custom-set-variables
;; custom-set-variables was added by Custom -- don't edit or cut/paste it!
;; Your init file should contain only one such instance.
'(ps-bottom-margin 12)
'(ps-font-size (quote (7 . 10)))
'(ps-footer-offset 18.346456692913385)
'(ps-paper-type (quote a4))
'(ps-top-margin 70.51968503937007))
(custom-set-faces
;; custom-set-faces was added by Custom -- don't edit or cut/paste it!
;; Your init file should contain only one such instance.
'(muse-emphasis-1 ((t (:inherit italic :slant italic))))
'(muse-emphasis-2 ((t (:inherit variable-pitch :weight bold))))
'(muse-emphasis-3 ((t (:inherit variable-pitch :slant italic :weight bold))))
'(muse-header-2 ((t (:inherit variable-pitch :weight bold :height 1.3))))
'(muse-header-5 ((t (:inherit variable-pitch :weight bold :height 1.1)))))

------------------------------------------
FC5, KDE
http://www.linuxquestions.org/
http://www.fedoraforum.org/
http://stanton-finley.net/fedora_core_5_installation_notes.html

------------------------------------------
emacs user

댓글 달기

Filtered HTML

  • 텍스트에 BBCode 태그를 사용할 수 있습니다. URL은 자동으로 링크 됩니다.
  • 사용할 수 있는 HTML 태그: <p><div><span><br><a><em><strong><del><ins><b><i><u><s><pre><code><cite><blockquote><ul><ol><li><dl><dt><dd><table><tr><td><th><thead><tbody><h1><h2><h3><h4><h5><h6><img><embed><object><param><hr>
  • 다음 태그를 이용하여 소스 코드 구문 강조를 할 수 있습니다: <code>, <blockcode>, <apache>, <applescript>, <autoconf>, <awk>, <bash>, <c>, <cpp>, <css>, <diff>, <drupal5>, <drupal6>, <gdb>, <html>, <html5>, <java>, <javascript>, <ldif>, <lua>, <make>, <mysql>, <perl>, <perl6>, <php>, <pgsql>, <proftpd>, <python>, <reg>, <spec>, <ruby>. 지원하는 태그 형식: <foo>, [foo].
  • web 주소와/이메일 주소를 클릭할 수 있는 링크로 자동으로 바꿉니다.

BBCode

  • 텍스트에 BBCode 태그를 사용할 수 있습니다. URL은 자동으로 링크 됩니다.
  • 다음 태그를 이용하여 소스 코드 구문 강조를 할 수 있습니다: <code>, <blockcode>, <apache>, <applescript>, <autoconf>, <awk>, <bash>, <c>, <cpp>, <css>, <diff>, <drupal5>, <drupal6>, <gdb>, <html>, <html5>, <java>, <javascript>, <ldif>, <lua>, <make>, <mysql>, <perl>, <perl6>, <php>, <pgsql>, <proftpd>, <python>, <reg>, <spec>, <ruby>. 지원하는 태그 형식: <foo>, [foo].
  • 사용할 수 있는 HTML 태그: <p><div><span><br><a><em><strong><del><ins><b><i><u><s><pre><code><cite><blockquote><ul><ol><li><dl><dt><dd><table><tr><td><th><thead><tbody><h1><h2><h3><h4><h5><h6><img><embed><object><param>
  • web 주소와/이메일 주소를 클릭할 수 있는 링크로 자동으로 바꿉니다.

Textile

  • 다음 태그를 이용하여 소스 코드 구문 강조를 할 수 있습니다: <code>, <blockcode>, <apache>, <applescript>, <autoconf>, <awk>, <bash>, <c>, <cpp>, <css>, <diff>, <drupal5>, <drupal6>, <gdb>, <html>, <html5>, <java>, <javascript>, <ldif>, <lua>, <make>, <mysql>, <perl>, <perl6>, <php>, <pgsql>, <proftpd>, <python>, <reg>, <spec>, <ruby>. 지원하는 태그 형식: <foo>, [foo].
  • You can use Textile markup to format text.
  • 사용할 수 있는 HTML 태그: <p><div><span><br><a><em><strong><del><ins><b><i><u><s><pre><code><cite><blockquote><ul><ol><li><dl><dt><dd><table><tr><td><th><thead><tbody><h1><h2><h3><h4><h5><h6><img><embed><object><param><hr>

Markdown

  • 다음 태그를 이용하여 소스 코드 구문 강조를 할 수 있습니다: <code>, <blockcode>, <apache>, <applescript>, <autoconf>, <awk>, <bash>, <c>, <cpp>, <css>, <diff>, <drupal5>, <drupal6>, <gdb>, <html>, <html5>, <java>, <javascript>, <ldif>, <lua>, <make>, <mysql>, <perl>, <perl6>, <php>, <pgsql>, <proftpd>, <python>, <reg>, <spec>, <ruby>. 지원하는 태그 형식: <foo>, [foo].
  • Quick Tips:
    • Two or more spaces at a line's end = Line break
    • Double returns = Paragraph
    • *Single asterisks* or _single underscores_ = Emphasis
    • **Double** or __double__ = Strong
    • This is [a link](http://the.link.example.com "The optional title text")
    For complete details on the Markdown syntax, see the Markdown documentation and Markdown Extra documentation for tables, footnotes, and more.
  • web 주소와/이메일 주소를 클릭할 수 있는 링크로 자동으로 바꿉니다.
  • 사용할 수 있는 HTML 태그: <p><div><span><br><a><em><strong><del><ins><b><i><u><s><pre><code><cite><blockquote><ul><ol><li><dl><dt><dd><table><tr><td><th><thead><tbody><h1><h2><h3><h4><h5><h6><img><embed><object><param><hr>

Plain text

  • HTML 태그를 사용할 수 없습니다.
  • web 주소와/이메일 주소를 클릭할 수 있는 링크로 자동으로 바꿉니다.
  • 줄과 단락은 자동으로 분리됩니다.
댓글 첨부 파일
이 댓글에 이미지나 파일을 업로드 합니다.
파일 크기는 8 MB보다 작아야 합니다.
허용할 파일 형식: txt pdf doc xls gif jpg jpeg mp3 png rar zip.
CAPTCHA
이것은 자동으로 스팸을 올리는 것을 막기 위해서 제공됩니다.