Skip to content

Instantly share code, notes, and snippets.

;;;; shell settings
(setq eshell-visual-commands
'("vim" "vi" "screen" "top" "less" "more" "lynx" "ncftp" "pine"
"tin" "trn" "elm" "tmux" "nano" "mc" ("git" ("log" "diff" "show")) ))
(use-package eshell)
(require 'em-smart)
(setq eshell-where-to-jump 'begin)
(setq eshell-review-quick-commands nil)
(setq eshell-smart-space-goes-to-end t)
(setq comint-prompt-read-only t)
;;; ace-jump-mode.el --- a quick cursor location minor mode for emacs -*- coding: utf-8-unix -*-
;; Copyright (C) 2012 Free Software Foundation, Inc.
;; Author : winterTTr <[email protected]>
;; URL : https://github.com/winterTTr/ace-jump-mode/
;; Version : 2.0.RC
;; Keywords : motion, location, cursor
;; This file is part of GNU Emacs.
;; see https://github.com/lolownia/org-pomodoro
;; and use case from http://headhole.org/organisation/2012/08/22/org-mode-gtd-and-the-pomodoro-technique/
(use-package org-pomodoro
:config
(global-set-key (kbd "M-<f11>") 'org-pomodoro)
(global-set-key (kbd "s-<f11>") 'org-pomodoro)
;; (global-set-key (kbd "C-c C-x C-i") 'org-pomodoro)
;; (global-set-key (kbd "C-c C-x C-o") 'org-pomodoro)
;;;; modeline section
;; spaceline/powerline modeline package
;; https://github.com/TheBB/spaceline
(require 'spaceline-config)
(spaceline-spacemacs-theme)
(setq spaceline-window-numbers-unicode t)
(setq spaceline-workspace-numbers-unicode t)
(setq ns-use-srgb-colorspace nil)
;; add missing ; on mac layout via H-8
(define-key key-translation-map (kbd "H-8") (kbd ";"))
(quail-define-package
"russian-no-windows" "Russian" "RU" nil
"ЙЦУКЕН Russian computer layout"
nil t t t t nil nil nil nil nil t)
;; 1! 2" 3№ 4% 5: 6, 7. 8; 9( 0) -_ =+ \/ ёЁ
;; Й Ц У К Е Н Г Ш Щ З Х Ъ
;; RECODE ENGLISH TO RUSSIAN ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
;; punto switcher
;; rus<->lat перекодировка
;; К сожалению не помню автора :(
;; Иногда начинаешь набирать текст, забыв переключить регистр - очень обидно
;; M^x rus<->lat и M^x lat<->rus поможет этому горю
;;
(use-package cl)
;; http://www.emacswiki.org/emacs/%D0%9F%D0%B5%D1%80%D0%B5%D0%BA%D0%BE%D0%B4%D0%B8%D1%80%D0%BE%D0%B2%D0%BA%D0%B0%D0%A0%D1%83%D1%81%D1%81%D0%BA%D0%BE%D0%B3%D0%BE%D0%A2%D0%B5%D0%BA%D1%81%D1%82%D0%B0
" Vundle"{{{
set nocompatible " be iMproved, required
filetype off " required
if has('win32') || has('win64')
set directory=$HOME\\temp\\
set backupdir=$HOME\\temp\\
set rtp+=~/vimfiles/bundle/Vundle.vim
let path='~/vimfiles/bundle'
call vundle#begin(path)
;;;; Локализация
;;the below breaks gnus. The problem is that message-make-date, which actually shouldn't be localized, uses parse-time-weekdays and parse-time-months, which are localized. So, some more work is needed, along the lines of this:
(use-package parse-time)
(require 'message)
;; Do this before setting the variables correctly.
(setq parse-time-months-unlocalized parse-time-months)
(setq parse-time-weekdays-unlocalized parse-time-weekdays)
*** tab bar
[[https://www.emacswiki.org/emacs/TabBarMode][EmacsWiki: Tab Bar Mode]]
#+begin_src emacs-lisp
(use-package tabbar
:config
; turn on the tabbar
(tabbar-mode -1)
;; (setq tabbar-use-images nil)

как подключить этот файл к Emacs

Поместить в ~/.emacs:

;; initial setup with dropbox