snosov1 / dot-emacs Goto Github PK
View Code? Open in Web Editor NEWEmacs configuration
Emacs configuration
Случайно нашёл вашу конфигурацию и прочитал README.org
файл. Хотя моя
собственная конфигурация сильно отличается от вашей, я позаимствовал пару
мелких вещей и решил "отплатить" вам.
Hopefully, you will find something useful here and, maybe, you will share
your insights into better ways to use Emacs with me.
Звучит как будто вы предлагаете поделиться идеями о том как лучше
использовать Emacs именно с вами :-)
(ignore-errors
(set-frame-font
(car (x-list-fonts "-*-DejaVu Sans Mono-normal-normal-normal-*-*-*-*-*-*-*-iso10646-1"))))
Странный способ выбрать шрифт. Как насчёт (может я чего-то не знаю):
(set-face-attribute 'default nil :family "DejaVu Sans Mono")
(set-face-attribute 'variable-pitch nil :family "DejaVu Sans Mono") ; optional
Upcase, lowercase and capitalize
Скромно могу предложить Fix Word.
(setq-default wdired-allow-to-change-permissions t)
Это не локальная по отношению к буферу переменная, поэтому просто seq
было
бы достаточно.
Dired может обновляться автоматически если содержимое директории
меняется. Пробуйте:
(setq auto-revert-verbose nil
global-auto-revert-non-file-buffers t)
(global-auto-revert-mode 1) ; revert buffers automatically
(define-key global-map (kbd "\C-c f")
(defun toggle-window-split ()
"Switches from a horizontal split to a vertical split and visa versa."
(interactive)
…))
Visa Versa! Забавная опечатка.
Embedded lisp evaluation
В Emacs есть замечательный калькулятор.
Now we’re getting on speed. Once you already have multiple cursors, M-#
adds successive numbers in the place of each cursor. E.g. if you have 3
cursors, then pressing M-# will print 0 in the position of the first
cursor, 1 - in the position of the second cursor and 2 - in the position
of the third cursor. If you provide a prefix argument, say, C-3 M-#, it
will be used as a base number - 3, 4, 5.
Это делается через прямоугольное выделение (в Emacs 25 теперь есть
визуальная поддержка для этого, C-x SPC — если использовать
горячие клавиши по умолчанию), потом rectangle-number-lines
. Для меня это
menu r n, т.к. M-x … — слишком медленно.
Всегда удивляюсь когда люди используют горячие клавиши Emacs, которые там
поставлены по-умолчанию. У вас нет болей в руках? Как можно нажимать
несколько клавиш одновременно? Это же идёт в разрез со всякой
эргономикой. Посмотрите на кассовые аппараты и т.п. — специализированные
машины, которые специально разработаны для одной конкретной цели. Все
операции выполняются одним нажатием клавиши или их
последовательностью. Аккорды должны быть исключены полностью :-) Тоже самое
и для ⇧ Shift. Всё пережитки времен печатной машинки — тогда надо
было держать клавишу из-за конструктивных особенностей машинки, а сейчас зачем?
Мне нравится идея чтобы ⇧ Shift поднимал следующую букву,
т.е. нажимался перед ней, а не вместе с ней. Но я понимаю что мои взгляды и
методы использования Emacs немного маргинальны, так что это просто мнение.
Русскоязычные сочинения читать не стал, т.к. явно написано не для меня + я
не могу читать когда обращаются на ты.
Ах да, тире, которое ‘—’ — оно отличается от дефиса, который ‘-’, хорошо бы
использовать каждого по назначению, сразу лучше смотрится.
Удачи!
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.