-
Related:
emacs main inbox
emacs-yasnippet
Snippet collections can be stored in plain text files. They are arranged by sub-directories naming snippet tables. These mostly name Emacs major mode names.
기본적으로 Emacs major Mode의 네임으로 subdir을 만들어서 관리한다.
Triggering Expansion
-
when yas-minor-mode is active 일 때 triggering key를 누르면 확장 된다.
Writting Snippet
emacs-my-package
내가 사용하는 package를 모아서 정리
- orgmode
- tide
- hydra
- company-mode
- yasnippet
- auto-complete
- hook 개념 이해하기
Code Formatting
코드 포맷을 하기 위해서 다음과 같은 것을 할 수 있을 것 같다.
편집 스타일
-
바닐라 이맥스
-
evil mode
-
compasable.el
emacs my configuration
이맥스를 자주 사용하는데 설정을 어떻게 바꿨는지 무슨 기능들이 있었는지 잘 모르겠어서 여기에 히스토리를 정리해놓으려고 한다. 이렇게 하면 앞으로 잘 쓸 수 있지 않을까?
orgmode
orgmode
설명 | keybind | |
---|---|---|
org-narrow-subtree | C-x n n | 내가 원하는 글 쓰는 장소로 집중할 수 있다. |
org-next-visible-heading | C-c C-n | 다음 heading으로 이동 |
org-forward-heading-same-level | C-c C-f | 글 쓰는 도중에 사용하면 해당헤드로 이동 가능 |
org-backward-heading-same-level | C-c C-b | 글 쓰는 도중에 사용하면 해당 헤드로 이동 가능 |
org-clock-report | C-c C-x C-r | |
org-clock-in | C-c C-x C-i | |
org-clock-out | C-c C-x C-o |
orgmode
code navigation
설명 | keybind | |
---|---|---|
jump into definition | M-, | |
Move back to defitnion | M-. | |
해당 코드에서 바인드된것들 요약해서 캡쳐하기 |
file navigation
설명 | keybind | |
---|---|---|
treemacs-toggle | C-x t t | treemacs toggle |
next-navigation | n | next |
previous-navigation | p | previous |
edit-work-space | C-c C-w e | workspace edit |
switch-work-space | C-c C-w s | switch work space |
open no split | o o | open no split |
open vertical split | o v | open vertical spli |
open-horizontally | o h | open horizontally |
create-file | c f | |
create-dir | c d | |
open-ace-? | o a (a, h, v) | 선택 해서 오픈하기 |
MacOS에서 org-protocol 사용하기
Platus라는 앱을 발견
emacs-documentation
14.22 Visual Line Mode
Another alternative to ordinary line continuation is to use word wrap. Here, each long logical line is divided into two or more screen lines, like in ordinary line continuation. However, Emacs attempts to wrap the line at word boundaries near the right window edge. (If the line’s direction is right-to-left, it is wrapped at the left window edge instead.) This makes the text easier to read, as wrapping does not occur in the middle of words.
일반적인 라인 이어짐(line continuation)에 대한 대한으로는 word wrap을 상요하는 것이다. 여기에 긴 논리적 라인이 2개 또는 더 많은 스크린의 줄에서
Word wrap is enabled by Visual Line mode, an optional minor mode. To turn on Visual Line mode in the current buffer, type M-x visual-line-mode; repeating this command turns it off. You can also turn on Visual Line mode using the menu bar: in the Options menu, select the ‘Line Wrapping in this Buffer’ submenu, followed by the ‘Word Wrap (Visual Line mode)’ menu item. While Visual Line mode is enabled, the mode line shows the string ‘wrap’ in the mode display. The command M-x global-visual-line-mode toggles Visual Line mode in all buffers.
In Visual Line mode, some editing commands work on screen lines instead of logical lines: C-a (beginning-of-visual-line) moves to the beginning of the screen line, C-e (end-of-visual-line) moves to the end of the screen line, and C-k (kill-visual-line) kills text to the end of the screen line.
To move by logical lines, use the commands M-x next-logical-line and M-x previous-logical-line. These move point to the next logical line and the previous logical line respectively, regardless of whether Visual Line mode is enabled. If you use these commands frequently, it may be convenient to assign key bindings to them. See Init Rebinding.
By default, word-wrapped lines do not display fringe indicators. Visual Line mode is often used to edit files that contain many long logical lines, so having a fringe indicator for each wrapped line would be visually distracting. You can change this by customizing the variable visual-line-fringe-indicators