Differences between revisions 29 and 30
Revision 29 as of 2023-09-08 10:45:33
Size: 3566
Editor: 정수
Comment:
Revision 30 as of 2023-09-08 10:46:42
Size: 3643
Editor: 정수
Comment:
Deletions are marked like this. Additions are marked like this.
Line 111: Line 111:
== OS별 Emacs == == OS별 Emacs 설치 방법 ==
Line 113: Line 113:
 * Windows
 * macOS
 * Ubuntu
  Windows:: scoop을 이용한다.
  macOS::
  Ubuntu:: apt package manager에 들어있다.

Packages

ELPA Repositories

   1 (add-to-list 'package-archives '("marmalade" . "http://marmalade-repo.org/packages/"))
   2 (add-to-list 'package-archives '("melpa" . "http://melpa.milkbox.net/packages/"))

유용한 패키지들

기타 패키징 시스템으로 el-get이 있다.

Cask를 사용하여 의존성 관리를 하면 편리하다.

Writeroom like modes

Screencast

https://www.reddit.com/r/emacs/comments/1yu2j0/generating_gifs_showing_emacs_features/

Use Emacs on Mac OS X using iTerm2

https://coderwall.com/p/b7kx4a/using-cmd-as-option-in-emacs-iterm2

1. In the "Keys" tab in configuration, change "Left Command" to map to the "Right Option" key
2. Under the "Profiles" tab changed "Right Option" key to act as Esc

Org-mode에서 오류 발생할 때 대처법

Org 파일을 열 때, 아래와 같은 오류가 발생할 때가 있다.

Invalid function: org-babel-header-args-safe-fn

그럴 때는 ob-R.el을 찾아서, (describe function을 활용) "M-x byte-compile-file"을 실행해주면 된다.

WSL에서 콘솔 띄우지 않고 실행하기

http://stackoverflow.com/a/41229169/4809432

  • > wscript .\runHidden.vbs bash -c "DISPLAY=:0 xmessage 'hello, world' &"

runHidden.vbs

' Simple command-line help.
select case WScript.Arguments(0)
case "-?", "/?", "-h", "--help"
  WScript.echo "Usage: runHidden executable [...]" & vbNewLine & vbNewLine & "Runs the specified command hidden (without a visible window)."
  WScript.Quit(0)
end select

' Separate the arguments into the executable name
' and a single string containing all arguments.
exe = WScript.Arguments(0)
sep = ""
for i = 1 to WScript.Arguments.Count -1
  ' Enclose arguments in "..." to preserver their original partitioning.
  args = args & sep & """" & WScript.Arguments(i) & """"
  sep = " "
next

' Execute the command with its window *hidden* (0)
WScript.CreateObject("Shell.Application").ShellExecute exe, args, "", "open", 0

Compile with Ubuntu 18.04

Install Emacs by compile it.

   1 apt install libgtk-3-dev libxpm-dev libjpeg-dev libgif-dev libtiff-dev gnutls-dev libtinfo-dev librsvg2-dev liblcms2-dev libgpm-dev libm17n-dev libotf-dev
   2 # for xwidget
   3 apt install libwebkit2gtk-4.0-dev
   4 
   5 ./configure --with-xwidgets --with-x-toolkit=gtk3 --with-modules --with-mailutils

WSL에서 Emacs 26.1 창의 내용이 보이지 않는 경우:

OS별 Emacs 설치 방법

Windows
scoop을 이용한다.
macOS
Ubuntu
apt package manager에 들어있다.

Emacs (last edited 2024-07-11 12:56:50 by 정수)