Global emacs config file for all users?

Hi all,
i put .emacs in my home dir, but it do not take effect when  'sudo emacs'
so where should i put the config file for all users ?
thanks!

use this elisp snippet to edit file by sudo
(defun xwl-revert-buffer-with-sudo ()
"Revert buffer using tramp sudo.
This will also reserve changes already made by a non-root user."
(interactive)
(let ((f (buffer-file-name))
(p (point)))
(when f
(let ((content (when (buffer-modified-p)
(widen)
(buffer-string))))
(kill-buffer (current-buffer))
(if (file-remote-p f)
(find-file
(replace-regexp-in-string "^\\/[^:]+:" "/sudo:" f))
(find-file (concat "/sudo::" f)))
(when content
(let ((buffer-read-only nil))
(erase-buffer)
(insert content)))
(goto-char p)))))

Similar Messages

  • Move the Cache files for all user in the domain, which work with the PC

    Is there a possibility to chance the Cache file for all User.
    If i logon with a new user the Cache is written automatically in Proflie of the user.
    can configure to Java in such a way that with announce a user the Cache file get automatically moved to c:\temp.
    Thanks for your help

    oh, too bad, it is part of the requirement-we need to do it automatically through web.
    Any easier method to change the client machine deployment.properties through web?
    Need to deploy the application to thousands PC and the PC configuration may be different one by one.
    oldguy

  • How do I set the about:config settings for all users? iprism keeps prompting from authentication for users.

    When users log on and try to open Firefox 23.0.1, users are prompted with Iprism Authentication. We made changes to the firefox about:config values "network.automatic-ntlm-auth.allow.-non-fqdn" and "Network.negotiate-auth.allow-non-fqdn" to true and it works, but only works on a per user basis. How can we set this up for all users?

    I would think the about:config entries discussed are ex-factory set to values each user has to change individually, after the installation has run its course. The solution could be to have patched files ready to install post factum:
    [https://developer.mozilla.org/en-US/docs/Mozilla/Preferences/A_brief_guide_to_Mozilla_preferences A Brief Guide to Mozilla Preferences - MDN]

  • Stting auto pac file for all users

    What happened to all.js in Firefox 4.
    Need to be able to place a pac file into proxy settings for all users. Do not want to have to get the users to individually enter a pac file for their own profile.
    If this is no longer possible in version 4, I think Firefox is going to lose a lot of domain users

    js files in %PROGRAMFILES%\Mozilla Firefox\defaults\pref\ are read on startup (In reverse alphabetical order AFAIK). You can create a file here for your proxy settings. Works for me.
    cf : http://wpkg.org/Firefox#Setting_and_Locking_Preferences

  • Change the kernel26 config file for ati users?

    Hi,
    To get the  propriatary ati drivers working you need to change some parts of the kernel from build in to module. What about changing this in the standard kernel26 so that this will make it easyer to install ati drivers (and update the kernel) for a lot of users. I think it isn't hard to change because the config file is kernel26 package.
    I don't know much about kernels and stuff so I don't know if it will be negative for some users? Else of course it shouldn't be changed because only a small percentage of arch users use propiatary ati drivers.
    Please give me your opinion about this
    David
    edit: typo

    I don't think that Xentac wrote that, in this thread qwerty wrote it, or is this the same person?
    In that thread is also the reason why they need to be modules, the propriatary ati drivers interact with the AGP modules from the kernel. For some reason this doesn't work when they are compiled in the kernel. Shall I send qwerty a message if he can explain better why modules are needed?
    Also I'm trying(never made a PKGBUILD...) to merge the two PKGBUILDS from that howto in one so that in the future to install ati drivers one can just type pacman -S ati-drivers, add the module to rc.conf and change xorg.conf to get it working, that should be really cool I think
    edit: I just found out this isn't needed since I found ati packages in link's reposatority! The only strange thing is that they depend on an older kernel

  • How to embed fonts in document for all users

    Hello,
    we are using a custom font for our documents. I know it's possible to embed fonts in document when saving.
    Is there an option to enforce this setting with a policy?
    I cannot find the right policy in the Office Policy templates.
    We are using Office 2013 x86.
    Thanks in advance.

    Hi,
    Based on my knowledge, the option is document-based, we can't control this on the Policy level.
    If your request is to turn on this option for all new created documents. Since all new documents are based on the Normal.dotm template, a workaround is to create a new Normal.dotm template in which this option is checked:
    Browse to C:\Users\Username\AppData\Roaming\Microsoft\Templates, open Normal.dotm, tick the option and save it as Normal_1.dotm, save it in the same location.
    Then rename the old Normal.dotm to Normal.old, rename Normal_1.dotm to Normal.dotm.
    Open Word and create a new blank document, you will see this option is ticked.
    To deploy this file for all users, we can write a startup script. The process is like: 1. Remove the old Normal.dotm, 2. Copy the new Normal.dotm template from a network shared location to C:\Users\Username\AppData\Roaming\Microsoft\Templates.
    I hope the information is helpful to you.
    Regards,
    Melon Chen
    TechNet Community Support
    It's recommended to download and install
    Configuration Analyzer Tool (OffCAT), which is developed by Microsoft Support teams. Once the tool is installed, you can run it at any time to scan for hundreds of known issues in Office
    programs. Please remember to mark the replies as answers if they help, and unmark the answers if they provide no help. If you have feedback for TechNet Support, contact
    [email protected]

  • Does ctrl-alt-shift clear preferences for all users?

    On a multi-user computer, does holding ctrl-alt-shift during InDesign launch clear preferences files for all users on that computer, or just the current user?  I have a few multi-user machines that are having issues, which the knowledagebase says is often cured by clearing preferences.
    Thanks guys!

    Just the current user

  • Default WorkBook file extension for all users of BEx 7 in Offce 2007

    Hi Experts
    We recently started using office 2007 with BEx 7.
    However, many users still has Office 2003 installed.
    I am looking to set the default file extension for all users to be .XLS.
    I know that this option is available in Client level (Global Settings - Use XLS file format ) but I require that the checkbox will be automatically checked.
    Is there a way to do it?
    Thanks,
    Yaniv

    Hello Yaniv,
    Yes, you can maintan them globally.
    this can be done in registry under :   HKEY_CURRENT_USER\Software\SAP\BEx\Analyzer.
       UseXLSFileFormat
       Type: String Value
       Value true or false
    For more information refer to SAP Note 1254112
    Regards,
    Arvind

  • How do I install a Thunderbird add-on for all users? Putting the XPI file into Extensions folder didn't work.

    I'm trying to install Enigmail 1.8.2 for all users. I thought I read somewhere that you don't need to unpack the XPI file.
    Whilst writing this, I did some experimenting and found a solution, but it's messy (see below). Is there an easier way?
    Fresh install of Thunderbird 31.6 on Windows 7 x64. Have observed the following:
    1. If I install the extension for one user via the Add-Ons GUI (from the marketplace, not from a local file), it does work. The Appdata\Roaming\Mozilla\Extensions folder is empty. Folder {847b3a00-7ab1-11d4-8f02-006008948af5} is created in Appdata\Roaming\Thunderbird\Profiles\xxxxxxxx.default\extensions\staged\ and moved from staged to extensions when TB is restarted.
    2. If I download the XPI file from Enigmail site and copy it to Program Files(x86)\Mozilla Thunderbird\Extensions folder, then Thunderbird's Extensions screen says "You don't have any add-ons of this type installed".
    3a. If I rename the xpi to zip (e.g. enigmail-1.8.2-tb+sm.xpi.zip) then I can open it and see that the contents are similar to what was created at point (1). If I unzip the contents, then Thunderbird doesn't recognise the add-on, unless I rename the folder to the GUID above (which could be found in install.rdf or chrome.manifest, once you know what you're looking for).
    Presumably I could also have done a per-user install, copied the folder from the profile, removed the extension, then pasted the copy into the program folder. That would save looking up the GUID but is only a little less fiddly.
    3b. After renaming the folder and restarting TB, it gives me a new tab "Install Add-on" which says "Another program on your computer would like to modify Thunderbird with the following add-on: ... Location: C:\Program Files (x86)". Once I allow the add-on, it is listed in Profiles\xxxxxxxx.default\extensions.ini.
    Aside: Disabling the add-on simply removes the line from extensions.ini, so how does TB distinguish between an unapproved add-on and a disabled one? It seems to be in extensions.json.

    Is Thunderbird already installed in the computers? If so, you could download the .xpi file and drag and drop it into the extensions window (after opening that) to install it in all the computers, following which you click the Install buttons when they become enabled, and you might have to restart Tbird afterwards.

  • Set default password for all users including csv file

    I would like to set the default password for all users
    including the ones imported in the csv file?
    Also now the default passwrd in set to the email address. How
    do i change that setting to the "login" setting in the csv file so
    those users can loin with that password?
    Kinda the same question but do yuo get the idea?
    Thank you,
    Chip

    You could download and install RCDefaultApp 2.1 for all users: check the Read Me and then test it on something to see if it accomplishes what you want.
    http://www.rubicode.com/Software/RCDefaultApp/

  • Changing default open with for file type for all users

    hello
    can I change the default app to open a specific file type for all users and not juist for my user?
    i am admin for my mac mini.
    tnx
    gil

    What applications are offered for open with depends on the application itself informing the system it can open certain files, plus your own custom selections for opening files. Evidently the alternate app you want to use does not claim to be able to open the files you are assigning it. If you have a plist editor and know how to use it you could edit the info.plist file inside the application itself to add the file type you want to the application's declaration of file types it will open. Then restart so the system will read that declaration. I think it would be far easier to simply launch the application and then drop a file you want it to open onto its icon in the Dock.
    Francine
    Francine
    Schwieder

  • File Associations for all users

    How does one go about changing file associations for file types for all users? I've recently installed iWork '08 on a computer on the network and now when I log in as a user it wants to open all of my Excel and Word Documents in Numbers and Pages respectively. How can I get it to default back to Microsoft Office for all of my Microsoft Office documents for all users. The iWork '08 install seemed to just take over, so it must be possible.
    Thanks!
    Chad

    I too need this information, but seeing it's been over a year and no one replied to the thread starter.....

  • Changing file clicking default behaviour for all users

    Is there a way to change the default file clicking behaviour for all users? Each user can do it himself by going via the username menu ("Personal Preferences", "When clicking on a file...") but I would prefer to set it for all users to a value that is different from the default.

    Hi Ganesh,
    Can u pl post how you solved this.
    Regards,
    Reema.

  • OCS 2007 Enabling Federation for all users globally

    I've set up federation in OCS 2007 and it's working. The problem now is I need to make enable it en mass for my users.
    I've searched all properties and can't find where I enable it for all users. The setting I'm looking for is equivalent to going in the users properties > Other Settings [configure] > and checking Enable Federation and Enable Remote access.
    I'd hate to go through 300+ users to check this. Does anyone know where I can set this globally?
    Thanks.

    What are the odds of that...answered my own question.
    I right clicked the users folder > configure users and it walked me through checking those options.
    Hope it saves someone some time :)

  • I am trying to get Menu Editor 1.2.7 to work globally for all users. I have added the .xpi to the extensions folder and it is not being installed auto-magically.

    I would like to have Menu Editor installed for all users. I attempted to put the .xpi file in c:\Program Files (x86)\Mozilla Firefox\extensions with the expectation that the user would be prompted to install.

    You need to rename the XPI file to the (GU)ID of the extension as listed in the file install.rdf or just install the extension in a profile and copy the file or folder from that profile to the extensions folder.

Maybe you are looking for

  • Mac running slow - considering reinstall

    Hullo My iMac is no longer snappy. It seems to have been like this for a while. At least since I upgraded to Snow Leopard*. I have tried running the usual utils to clear logs and caches and sort out disk permissions. I have even defragmented, first b

  • File not saving correctly

    Hi all, Recently I have been having trouble saving my stamped files, when i go into a file, stamp it & the save it the following error appears " The document cannot be saved, could not save to this filename, please save the document with a different

  • Open Service PO's

    Dear All, I have created a Service PO and partial qty services done. I want to close this PO and how should be done. I want to see the open PO report where this PO should not appear. Please advice. Regards

  • After encoding, out of application memory: problem & solution

    Shortly after completing a batch in Compressor 4.1 running in OS 10.9.1, I started receiving an error message that the system was out of application memory.  (Despite the fact that I have 16 GB of RAM!)  I had activity monitor open and there were num

  • Update 10.10.2 and iPod shuffle recognition

    Not sure if others have found this, but I recently installed the Yosemite 10.10.2 upgrade and now my iTunes will not recognize my iPod shuffle(s). I have two shuffles  (generation 2 and 4) that neither is being recognized. I had this problem earlier,