コード例 #1
0
def menu():
    """Creates a global menu to access the pastebin functionality"""
    lisp.easy_menu_add_item(lisp.current_global_map(), ['menu-bar'], [
        'Pastebin', ('Fetch last', lisp.paste_fetch_last),
        ('Insert last', lisp.paste_insert_last),
        ('Fetch by id', lisp.paste_fetch_by_id),
        ('Insert by id', lisp.paste_insert_by_id), '---',
        ('New from buffer', lisp.paste_new_from_buffer),
        ('New from region', lisp.paste_new_from_region)
    ])
コード例 #2
0
ファイル: pastemacs.py プロジェクト: dirkhusemann/pastemacs
def menu():
    """Creates a global menu to access the pastebin functionality"""
    lisp.easy_menu_add_item(
        lisp.current_global_map(),
        ['menu-bar'],
        ['Pastebin',
         ('Fetch...', lisp.paste_fetch),
         '---',
         ('New...', lisp.paste_new),
         ])
コード例 #3
0
ファイル: pastemacs.py プロジェクト: tabuchid/dotfiles
def menu():
    """Creates a global menu to access the pastebin functionality"""
    lisp.easy_menu_add_item(
        lisp.current_global_map(),
        ['menu-bar'],
        ['Pastebin',
         ('Fetch last', lisp.paste_fetch_last),
         ('Insert last', lisp.paste_insert_last),
         ('Fetch by id', lisp.paste_fetch_by_id),
         ('Insert by id', lisp.paste_insert_by_id),
         '---',
         ('New from buffer', lisp.paste_new_from_buffer),
         ('New from region', lisp.paste_new_from_region)
         ])