Differences between revisions 1 and 29 (spanning 28 versions)
Revision 1 as of 2011-12-27 07:38:10
Size: 47
Editor: 정수
Comment:
Revision 29 as of 2023-09-08 10:45:33
Size: 3566
Editor: 정수
Comment:
Deletions are marked like this. Additions are marked like this.
Line 1: Line 1:
#acl +All:read

<<TableOfContents(2)>>


 * [[Windows에 Emacs 설치하기]]
Line 2: Line 8:
 * DotEmacs

== Packages ==

[[http://www.emacswiki.org/emacs/ELPA|ELPA]] Repositories

{{{#!highlight elisp
(add-to-list 'package-archives '("marmalade" . "http://marmalade-repo.org/packages/"))
(add-to-list 'package-archives '("melpa" . "http://melpa.milkbox.net/packages/"))
}}}

유용한 패키지들
 * [[http://www.emacswiki.org/emacs/SmartTabs|Smart Tabs]]: smart-tabs-mode
 * [[https://github.com/jorgenschaefer/elpy|Elpy]]
 * [[http://pymacs.progiciels-bpi.ca/pymacs.html|Pymacs]]

기타 패키징 시스템으로 [[https://github.com/dimitri/el-get|el-get]]이 있다.

 * [[http://www.emacswiki.org/emacs/PythonProgrammingInEmacs|Python Programming in Emacs]]

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

== Writeroom like modes ==

 * [[https://github.com/joostkremers/writeroom-mode|Writeroom mode]]
 * [[https://github.com/rnkn/olivetti|Olivetti]]
 * [[https://github.com/capitaomorte/darkroom|Darkroom]]


== Screencast ==

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

 * LICEcap
 * byzanz
 * RecordMyDesktop

== 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.

{{{#!highlight sh
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
# for xwidget
apt install libwebkit2gtk-4.0-dev

./configure --with-xwidgets --with-x-toolkit=gtk3 --with-modules --with-mailutils
}}}

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

 * https://emacs.stackexchange.com/questions/41021/emacs-26-1-rc1-display-issues-over-ssh-x11-with-xming-vcxsrv: Emacs 26.1부터는 double buffering을 사용하는데, X11 서버 중에서 이걸 지원하지 않는 경우가 있을 수 있다.


== OS별 Emacs ==

 * Windows
 * macOS
 * Ubuntu

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
  • macOS
  • Ubuntu

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