You are not logged in.

#1 2011-06-29 16:33:12

Llama
Banned
From: St.-Petersburg, Russia
Registered: 2008-03-03
Posts: 1,379

mc: start emacs by F4 (root/sudo)

Hi,

I've got a solution for starting emacs by F4 as a user:

(1) Modify .bashrc:

...
export EDITOR="/home/user/.emacs.d/runemacsclient"
...

(2) Create /home/user/.emacs.d/runemacsclient:

#!/bin/bash
emacsclient --alternate-editor="" $1

(3) Set running permissions for runemacsclient

(4) Uncheck mc->Configure options->Other options->Use internal edit

How can one make something like this to be usable with sudo and as root?

Offline

#2 2011-06-29 18:30:57

coffee_addict
Member
From: Canada
Registered: 2011-06-14
Posts: 12

Re: mc: start emacs by F4 (root/sudo)

EDIT: Sorry I didn't realize you are using midnight commander. Please disregard my original post.

Last edited by coffee_addict (2011-06-29 18:48:02)

Offline

Board footer

Powered by FluxBB