forked from withfig/autocomplete
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathemacs.ts
85 lines (85 loc) · 2.25 KB
/
emacs.ts
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
/*
Made by Yavko :)
I made this for fun, I don't actually use emacs so if you do use it
Here!
*/
const completionSpec: Fig.Spec = {
name: "emacs",
description: "An extensible, customizable, free/libre text editor — and more",
args: {
template: "filepaths",
},
options: [
{
description: "Do not do interactive display; implies -q",
name: "--batch",
dependsOn: ["-q"],
},
{
description: "Change to directory",
name: "--chdir",
},
{
description: "Start a server in the background",
name: ["--daemon", "--bg-daemon"],
},
{
description: "Start a server in the foreground",
name: "--fg-daemon",
},
{
description: "Display Emacs version information and exit",
name: "--version",
},
{
description: "Display help and exit",
name: "--help",
},
{
description: "Do not load an init file",
name: ["-q", "--no-init-file"],
},
{
description: "Do not use shared memory",
name: ["-nl", "--no-shared-memory"],
},
{
description: "Do not load the site-wide startup file",
name: ["--no-site-file", "-nsl"],
},
{
description: "Do not load a saved desktop",
name: "--no-desktop",
},
{
description:
'Similar to "-q --no-site-file --no-splash", Also, avoid processing X resources',
name: ["-Q", "--quick"],
},
{
description: "Do not display a splash screen during start-u",
name: "--no-splash",
},
{
description:
"Enable Emacs Lisp debugger during the processing of the user init file ~/.emacs. This is useful for debugging problems in the init file",
name: "--debug-init",
},
{
description: "Load user's init file",
name: ["-u", "--user"],
},
{
description:
"Use specified file as the terminal instead of using stdin/stdout. This must be the first argument specified in the command line",
name: ["-t", "--terminal"],
args: { template: "filepaths" },
},
{
description: "The same as specifying file directly as an argument",
name: ["--file", "--find-file", "--visit"],
args: { template: "filepaths" },
},
],
};
export default completionSpec;