;;;; Devops tunings
;; (use-package ansible)
;; (ansible::set-default-keymap)
(use-package yaml-mode
:config
(add-to-list 'auto-mode-alist '("\\.yml\\'" . yaml-mode))
(add-hook 'yaml-mode-hook
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
** python-mode | |
#+begin_src emacs-lisp | |
(use-package python | |
:mode ("\\.py" . python-mode) | |
:config | |
(setq py-python-command "python3") | |
(setq python-shell-interpreter "python3") | |
(setq python-indent-offset 4) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#+begin_src emacs-lisp | |
(use-package ivy | |
:disabled | |
:bind (("C-x b" . ivy-switch-buffer) | |
("<M-F2>" . ivy-switch-buffer) | |
("<f10>" . ivy-resume) | |
("C-c C-r" . ivy-resume) | |
("C-c v" . ivy-push-view) | |
("C-c V" . ivy-pop-view) | |
) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
*** 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) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
;;;; Локализация | |
;;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) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
" 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) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
;; 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 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
;; 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) -_ =+ \/ ёЁ | |
;; Й Ц У К Е Н Г Ш Щ З Х Ъ |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
;;;; 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) |