Advertisement
Guest User

Untitled

a guest
May 1st, 2012
116
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lisp 3.48 KB | None | 0 0
  1. (custom-set-variables
  2.   ;; custom-set-variables was added by Custom.
  3.   ;; If you edit it by hand, you could mess it up, so be careful.
  4.   ;; Your init file should contain only one such instance.
  5.   ;; If there is more than one, they won't work right.
  6.  '(TeX-PDF-mode t)
  7.  '(browse-url-browser-function (quote browse-url-firefox))
  8.  '(browse-url-firefox-program "x-www-browser")
  9.  '(column-number-mode t)
  10.  '(desktop-save-mode t)
  11.  '(display-time-24hr-format nil)
  12.  '(display-time-day-and-date t)
  13.  '(emms-repeat-playlist t)
  14.  '(emms-repeat-track nil)
  15.  '(emms-track-description-function (quote emms-track-simple-description))
  16.  '(haskell-program-name "ghci")
  17.  '(inferior-lisp-program "/usr/bin/sbcl")
  18.  '(ispell-program-name "aspell" t)
  19.  '(make-backup-files nil)
  20.  '(menu-bar-mode nil)
  21.  '(multi-term-program "/bin/bash")
  22.  '(org-startup-truncated nil)
  23.  '(size-indication-mode t)
  24.  '(term-bind-key-alist (quote (("C-c C-c" . term-interrupt-subjob) ("C-p" . previous-line) ("C-n" . next-line) ("C-s" . isearch-forward) ("C-r" . isearch-backward) ("C-m" . term-send-raw) ("M-f" . term-send-forward-word) ("M-b" . term-send-backward-word) ("M-o" . term-send-backspace) ("C-S-p" . term-send-up) ("C-S-n" . term-send-down) ("M-M" . term-send-forward-kill-word) ("M-N" . term-send-backward-kill-word) ("M-r" . term-send-reverse-search-history) ("M-," . term-send-input) ("M-." . comint-dynamic-complete))))
  25.  '(term-unbind-key-list (quote ("C-z" "C-x" "C-c" "C-h" "C-y" "M-n" "M-p" "M-x")))
  26.  '(tool-bar-mode nil)
  27.  '(x-select-enable-clipboard t))
  28.  
  29. (server-start)
  30.  
  31. ;; Не заставляйте меня печать yes целиком
  32. (fset 'yes-or-no-p 'y-or-n-p)
  33.  
  34. (add-to-list 'load-path "~/.emacs.d/slime-2011-10-21/")
  35. (require 'slime)
  36. (slime-setup)
  37.  
  38. (load "haskell-mode/haskell-site-file")
  39. (add-hook 'haskell-mode-hook 'turn-on-haskell-doc-mode)
  40. (add-hook 'haskell-mode-hook 'turn-on-haskell-indent)
  41.  
  42. (add-to-list 'load-path "~/.emacs.d/emms/lisp/")
  43. (require 'emms-setup)
  44. (require 'emms-playing-time)
  45. (require 'emms-mode-line)
  46. (emms-standard)
  47. (emms-default-players)
  48. (emms-playing-time 1)
  49. (emms-mode-line 1)
  50.  
  51. (require 'multi-term)
  52.  
  53. (multi-term)
  54.  
  55. ;;; M-n v/h
  56. (defun hide-linum () (interactive) (linum-mode 0))
  57. (defun view-linum () (interactive) (linum-mode 1))
  58.  
  59. (global-set-key (kbd "M-n v") 'view-linum)
  60. (global-set-key (kbd "M-n h") 'hide-linum)
  61.  
  62. ;;; M-n r/u
  63. (defun set-us-dict () (interactive) (setq ispell-dictionary "english"))
  64. (defun set-ru-dict () (interactive) (setq ispell-dictionary "russian"))
  65.  
  66. (global-set-key (kbd "M-n u") 'set-us-dict)
  67. (global-set-key (kbd "M-n r") 'set-ru-dict)
  68.  
  69. (global-set-key (kbd "M-n p d") 'emms-play-directory)
  70. (global-set-key (kbd "M-n SPC") 'emms-pause)
  71.  
  72. ;;;;;;;;;
  73. ; Map Modifier-CyrillicLetter to the underlying Modifier-LatinLetter, so that
  74. ; control sequences can be used when keyboard mapping is changed outside of
  75. ; Emacs.
  76. ;
  77. ; For this to work correctly, .emacs must be encoded in the default coding
  78. ; system.
  79. ;
  80. (mapcar*
  81.  (lambda (r e) ; R and E are matching Russian and English keysyms iterate over modifiers
  82.    (mapc (lambda (mod)
  83.        (define-key input-decode-map
  84.          (vector (list mod r)) (vector (list mod e))))
  85.      '(control meta super hyper))
  86.                     ; finally, if Russian key maps nowhere, remap it to the English key without
  87.                     ; any modifiers
  88.    (define-key local-function-key-map (vector r) (vector e)))
  89.  "йцукенгшщзхъфывапролджэячсмитьбю"
  90.  "qwertyuiop[]asdfghjkl;'zxcvbnm,.")
  91. ;;;;;;;;;
  92.  
  93. (require 'tex-site)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement