Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
O
oh-my-zsh
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
JIRA
JIRA
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
github
oh-my-zsh
Commits
2fba4486
Commit
2fba4486
authored
Apr 13, 2011
by
Tristan Carel
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Add new plugin emacs, to take benefit of daemon capabilities of emacs >=23
parent
bbf1f87e
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
21 additions
and
0 deletions
+21
-0
emacs.plugin.zsh
plugins/emacs/emacs.plugin.zsh
+11
-0
emacsclient.sh
plugins/emacs/emacsclient.sh
+10
-0
No files found.
plugins/emacs/emacs.plugin.zsh
0 → 100644
View file @
2fba4486
# Use daemon capabilities of emacs 23
if
"
$ZSH
/tools/require_tool.sh"
emacs 23 2>/dev/null
;
then
export
EDITOR
=
"
$ZSH
/plugins/emacs/emacsclient.sh"
alias
emacs
=
"
$EDITOR
--no-wait"
alias
e
=
emacs
alias
emasc
=
emacs
alias
emcas
=
emacs
# create a new X frame
alias
emacs_frame
=
'emacsclient --alternate-editor "" --create-frame'
fi
plugins/emacs/emacsclient.sh
0 → 100755
View file @
2fba4486
#!/bin/sh
# Starts emacs daemon if not already started.
x
=
`
emacsclient
--alternate-editor
''
--eval
'(x-display-list)'
2>/dev/null
`
if
[
-z
"
$x
"
]
;
then
emacsclient
--alternate-editor
""
--create-frame
$@
else
emacsclient
--alternate-editor
""
$@
fi
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment